rust/tests/ui/lint/dead-code/lint-dead-code-2.stderr

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

27 lines
522 B
Plaintext
Raw Normal View History

error: function `dead_fn` is never used
--> $DIR/lint-dead-code-2.rs:22:4
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn dead_fn() {}
| ^^^^^^^
2018-08-08 07:28:26 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-2.rs:2:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: function `dead_fn2` is never used
--> $DIR/lint-dead-code-2.rs:25:4
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn dead_fn2() {}
| ^^^^^^^^
2018-08-08 07:28:26 -05:00
error: function `main` is never used
--> $DIR/lint-dead-code-2.rs:38:4
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn main() {
| ^^^^
2018-08-08 07:28:26 -05:00
error: aborting due to 3 previous errors