]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/outlives/obligations.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_infer / src / infer / outlives / obligations.rs
index e3312e6c6e14680c2f33736be429396d50768daf..19d03ffa6964a31171dd859ced1854cc869004bc 100644 (file)
@@ -33,9 +33,9 @@
 //! Consider:
 //!
 //! ```
-//! fn bar<T>(a: T, b: impl for<'a> Fn(&'a T));
+//! fn bar<T>(a: T, b: impl for<'a> Fn(&'a T)) {}
 //! fn foo<T>(x: T) {
-//!     bar(x, |y| { ... })
+//!     bar(x, |y| { /* ... */})
 //!          // ^ closure arg
 //! }
 //! ```