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