2021-09-27 16:06:16 -05:00
|
|
|
warning: unused variable: `x`
|
2021-11-03 11:10:09 -05:00
|
|
|
--> $DIR/issue-89305.rs:12:13
|
2021-09-27 16:06:16 -05:00
|
|
|
|
|
|
|
|
LL | let x: () = asm!("nop");
|
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2021-11-03 11:10:09 -05:00
|
|
|
--> $DIR/issue-89305.rs:8:9
|
2021-09-27 16:06:16 -05:00
|
|
|
|
|
|
|
|
LL | #![warn(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
|
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|