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

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

53 lines
1.0 KiB
Plaintext
Raw Normal View History

error: struct `Foo` is never constructed
--> $DIR/lint-dead-code-3.rs:14:8
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | struct Foo;
| ^^^
2018-08-08 12:28:26 +00:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/lint-dead-code-3.rs:4:9
2018-08-08 12:28:26 +00:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: method `foo` is never used
--> $DIR/lint-dead-code-3.rs:16:8
|
LL | impl Foo {
| -------- method in this implementation
LL | fn foo(&self) {
| ^^^
error: function `bar` is never used
--> $DIR/lint-dead-code-3.rs:21:4
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn bar() {
| ^^^
2018-08-08 12:28:26 +00:00
error: enum `c_void` is never used
--> $DIR/lint-dead-code-3.rs:60:6
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | enum c_void {}
| ^^^^^^
2018-08-08 12:28:26 +00:00
error: function `blah` is never used
--> $DIR/lint-dead-code-3.rs:77:8
|
LL | fn blah() {}
| ^^^^
error: function `blah` is never used
--> $DIR/lint-dead-code-3.rs:81:12
|
LL | fn blah() {}
| ^^^^
error: function `free` is never used
2022-06-22 18:33:59 +00:00
--> $DIR/lint-dead-code-3.rs:62:8
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn free(p: *const c_void);
2022-06-22 18:33:59 +00:00
| ^^^^
2018-08-08 12:28:26 +00:00
error: aborting due to 7 previous errors
2018-08-08 12:28:26 +00:00