rust/tests/ui/lint/unused/lint-unused-variables.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-07-26 22:52:37 +00:00
error: unused variable: `a`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:7:5
2019-07-26 22:52:37 +00:00
|
LL | a: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_a`
2019-07-26 22:52:37 +00:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:4:9
2019-07-26 22:52:37 +00:00
|
LL | #![deny(unused_variables)]
| ^^^^^^^^^^^^^^^^
error: unused variable: `a`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:21:9
2019-07-26 22:52:37 +00:00
|
LL | a: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_a`
2019-07-26 22:52:37 +00:00
error: unused variable: `a`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:67:9
|
LL | a: i32,
| ^ help: if this is intentional, prefix it with an underscore: `_a`
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:13:5
|
LL | b: i32,
| ^ help: if this is intentional, prefix it with an underscore: `_b`
2019-07-26 22:52:37 +00:00
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:28:9
2019-07-26 22:52:37 +00:00
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
2019-07-26 22:52:37 +00:00
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:33:9
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:41:9
2019-07-26 22:52:37 +00:00
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
2019-07-26 22:52:37 +00:00
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:46:9
2019-07-26 22:52:37 +00:00
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
2019-07-26 22:52:37 +00:00
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:54:9
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:59:9
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
error: unused variable: `b`
2024-11-06 17:53:59 +00:00
--> $DIR/lint-unused-variables.rs:73:9
2019-07-26 22:52:37 +00:00
|
LL | b: i32,
2020-03-23 08:02:46 +00:00
| ^ help: if this is intentional, prefix it with an underscore: `_b`
2019-07-26 22:52:37 +00:00
error: aborting due to 11 previous errors
2019-07-26 22:52:37 +00:00