mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
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:7: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:12:27
|
|
|
|
|
LL | fn inherent(&self) -> impl Sized + use<'_> {}
|
|
| ^^^^^^^^^^^^^-------
|
|
| |
|
|
| help: remove the `use<...>` syntax
|
|
|
|
warning: 2 warnings emitted
|
|
|