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 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | struct Foo;
| ^^^
2018-08-08 07:28:26 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/lint-dead-code-3.rs:4:9
2018-08-08 07:28:26 -05: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 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn bar() {
| ^^^
2018-08-08 07:28:26 -05:00
error: enum `c_void` is never used
--> $DIR/lint-dead-code-3.rs:60:6
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | enum c_void {}
| ^^^^^^
2018-08-08 07:28:26 -05: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 13:33:59 -05:00
--> $DIR/lint-dead-code-3.rs:62:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn free(p: *const c_void);
2022-06-22 13:33:59 -05:00
| ^^^^
2018-08-08 07:28:26 -05:00
error: aborting due to 7 previous errors
2018-08-08 07:28:26 -05:00