21 lines
799 B
Plaintext
21 lines
799 B
Plaintext
warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
|
|
--> $DIR/redundant.rs:5:19
|
|
|
|
|
LL | fn hello<'a>() -> impl Sized + use<'a> {}
|
|
| ^^^^^^^^^^^^^-------
|
|
| |
|
|
| help: remove the `use<...>` syntax
|
|
|
|
|
= note: `#[warn(impl_trait_redundant_captures)]` on by default
|
|
|
|
warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
|
|
--> $DIR/redundant.rs:10:27
|
|
|
|
|
LL | fn inherent(&self) -> impl Sized + use<'_> {}
|
|
| ^^^^^^^^^^^^^-------
|
|
| |
|
|
| help: remove the `use<...>` syntax
|
|
|
|
warning: 2 warnings emitted
|
|
|