We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903009a commit c0c23b8Copy full SHA for c0c23b8
src/trait-bounds.md
@@ -196,7 +196,7 @@ struct IsDebug<T: Debug>(T);
196
fn doesnt_specify_t_debug<T>(x: IsDebug<T>) {}
197
```
198
199
-Lifetime bounds are also inferred in type definitions and impl blocks.
+Lifetime bounds are also inferred for type definitions and impl blocks for any type
200
201
```rust
202
struct Struct<'a, T> {
@@ -221,7 +221,7 @@ trait Trait<'a, T: 'a> {}
221
// in the impl header.
222
// impl<'a, T> Trait<'a, T> for () {}
223
224
-// This compiles as `T: 'a` is implied by the self type `&'a ()`.
+// This compiles as `T: 'a` is implied by the self type `&'a ()`.
225
impl<'a, T> Trait<'a, T> for &'a T {}
226
227
0 commit comments