mirror of https://github.com/rust-lang/rfcs.git
Remove stray `use<T>`
We had included one `use<T>` in a pre-migration example when it should have only appeared in a post-migration example. Let's fix this error. (Thanks to @kennytm for pointing this out.)
This commit is contained in:
parent
312f5a1407
commit
585458cc82
|
@ -397,7 +397,7 @@ Note that since generic type parameters must have names to be captured with `use
|
|||
|
||||
```rust
|
||||
//@ edition: 2021
|
||||
fn foo<'t>(_: &'t (), x: impl Sized) -> impl use<T> Sized { x }
|
||||
fn foo<'t>(_: &'t (), x: impl Sized) -> impl Sized { x }
|
||||
```
|
||||
|
||||
...into this:
|
||||
|
|
Loading…
Reference in New Issue