diff --git a/src/exercises/bind.md b/src/exercises/bind.md index c17421c..4cea7f7 100644 --- a/src/exercises/bind.md +++ b/src/exercises/bind.md @@ -1,3 +1,5 @@ +# `bind` + Make this compile and pass tests: ```rust @@ -29,6 +31,7 @@ assert_eq!( ``` Try solving it in the playground: + ```rust,editable,compile_fail fn bind<T, F: Fn(T) -> Option<T>>(f: F, fa: Option<T>) -> Option<T> { match fa { diff --git a/src/exercises/refbind.md b/src/exercises/refbind.md index feb5076..4a400db 100644 --- a/src/exercises/refbind.md +++ b/src/exercises/refbind.md @@ -1,3 +1,5 @@ +# `bind`, but with references + Make this compile and pass tests: ```rust