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