Skip to content

Commit c0c23b8

Browse files
lcnrehuss
authored andcommitted
SPAAAAAAAAAAACE
1 parent 903009a commit c0c23b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trait-bounds.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ struct IsDebug<T: Debug>(T);
196196
fn doesnt_specify_t_debug<T>(x: IsDebug<T>) {}
197197
```
198198

199-
Lifetime bounds are also inferred in type definitions and impl blocks.
199+
Lifetime bounds are also inferred for type definitions and impl blocks for any type
200200

201201
```rust
202202
struct Struct<'a, T> {
@@ -221,7 +221,7 @@ trait Trait<'a, T: 'a> {}
221221
// in the impl header.
222222
// impl<'a, T> Trait<'a, T> for () {}
223223

224-
// This compiles as `T: 'a` is implied by the self type `&'a ()`.
224+
// This compiles as `T: 'a` is implied by the self type `&'a ()`.
225225
impl<'a, T> Trait<'a, T> for &'a T {}
226226
```
227227

0 commit comments

Comments
 (0)