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