2025-01-13 15:52:45 +00:00
|
|
|
error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
|
2025-03-06 20:50:51 +00:00
|
|
|
--> $DIR/redundant.rs:5:19
|
2024-09-29 17:41:13 +00:00
|
|
|
|
|
|
|
|
LL | fn hello<'a>() -> impl Sized + use<'a> {}
|
|
|
|
| ^^^^^^^^^^^^^-------
|
|
|
|
| |
|
|
|
|
| help: remove the `use<...>` syntax
|
|
|
|
|
|
2025-01-13 15:52:45 +00:00
|
|
|
note: the lint level is defined here
|
2025-03-06 20:50:51 +00:00
|
|
|
--> $DIR/redundant.rs:3:9
|
2025-01-13 15:52:45 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(impl_trait_redundant_captures)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-09-29 17:41:13 +00:00
|
|
|
|
2025-01-13 15:52:45 +00:00
|
|
|
error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
|
2025-03-06 20:50:51 +00:00
|
|
|
--> $DIR/redundant.rs:10:27
|
2024-09-29 17:41:13 +00:00
|
|
|
|
|
|
|
|
LL | fn inherent(&self) -> impl Sized + use<'_> {}
|
|
|
|
| ^^^^^^^^^^^^^-------
|
|
|
|
| |
|
|
|
|
| help: remove the `use<...>` syntax
|
|
|
|
|
2025-01-13 15:52:45 +00:00
|
|
|
error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
|
2025-03-06 20:50:51 +00:00
|
|
|
--> $DIR/redundant.rs:15:22
|
2024-09-29 17:41:13 +00:00
|
|
|
|
|
|
|
|
LL | fn in_trait() -> impl Sized + use<'a, Self>;
|
|
|
|
| ^^^^^^^^^^^^^-------------
|
|
|
|
| |
|
|
|
|
| help: remove the `use<...>` syntax
|
|
|
|
|
2025-01-13 15:52:45 +00:00
|
|
|
error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant
|
2025-03-06 20:50:51 +00:00
|
|
|
--> $DIR/redundant.rs:19:22
|
2024-09-29 17:41:13 +00:00
|
|
|
|
|
|
|
|
LL | fn in_trait() -> impl Sized + use<'a> {}
|
|
|
|
| ^^^^^^^^^^^^^-------
|
|
|
|
| |
|
|
|
|
| help: remove the `use<...>` syntax
|
|
|
|
|
2025-01-13 15:52:45 +00:00
|
|
|
error: aborting due to 4 previous errors
|
2024-09-29 17:41:13 +00:00
|
|
|
|