|
1 |
| -warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
| 1 | +error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
2 | 2 | --> $DIR/redundant.rs:6:19
|
3 | 3 | |
|
4 | 4 | LL | fn hello<'a>() -> impl Sized + use<'a> {}
|
5 | 5 | | ^^^^^^^^^^^^^-------
|
6 | 6 | | |
|
7 | 7 | | help: remove the `use<...>` syntax
|
8 | 8 | |
|
9 |
| - = note: `#[warn(impl_trait_redundant_captures)]` on by default |
| 9 | +note: the lint level is defined here |
| 10 | + --> $DIR/redundant.rs:4:9 |
| 11 | + | |
| 12 | +LL | #![deny(impl_trait_redundant_captures)] |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
10 | 14 |
|
11 |
| -warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
| 15 | +error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
12 | 16 | --> $DIR/redundant.rs:11:27
|
13 | 17 | |
|
14 | 18 | LL | fn inherent(&self) -> impl Sized + use<'_> {}
|
15 | 19 | | ^^^^^^^^^^^^^-------
|
16 | 20 | | |
|
17 | 21 | | help: remove the `use<...>` syntax
|
18 | 22 |
|
19 |
| -warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
| 23 | +error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
20 | 24 | --> $DIR/redundant.rs:16:22
|
21 | 25 | |
|
22 | 26 | LL | fn in_trait() -> impl Sized + use<'a, Self>;
|
23 | 27 | | ^^^^^^^^^^^^^-------------
|
24 | 28 | | |
|
25 | 29 | | help: remove the `use<...>` syntax
|
26 | 30 |
|
27 |
| -warning: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
| 31 | +error: all possible in-scope parameters are already captured, so `use<...>` syntax is redundant |
28 | 32 | --> $DIR/redundant.rs:20:22
|
29 | 33 | |
|
30 | 34 | LL | fn in_trait() -> impl Sized + use<'a> {}
|
31 | 35 | | ^^^^^^^^^^^^^-------
|
32 | 36 | | |
|
33 | 37 | | help: remove the `use<...>` syntax
|
34 | 38 |
|
35 |
| -warning: 4 warnings emitted |
| 39 | +error: aborting due to 4 previous errors |
36 | 40 |
|
0 commit comments