2018-12-02 19:27:37 +00:00
|
|
|
warning: unused variable: `a`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/attributes-included.rs:17:9
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a: i32 = "foo";
|
2020-03-23 08:02:46 +00:00
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_a`
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/attributes-included.rs:4:9
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
|
|
|
LL | #![warn(unused)]
|
|
|
|
| ^^^^^^
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
|
2018-12-02 19:27:37 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|