2022-02-20 21:38:39 -06:00
|
|
|
error: unused variable: `x`
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/let-else-allow-in-expr.rs:5:13
|
2022-02-20 21:38:39 -06:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/let-else-allow-in-expr.rs:1:9
|
2022-02-20 21:38:39 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_variables)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused variable: `x`
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/let-else-allow-in-expr.rs:27:9
|
2022-02-20 21:38:39 -06:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|