rust/src/test/ui/lint/lint-dead-code-3.stderr

39 lines
969 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: struct is never constructed: `Foo`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-3.rs:13:1
2018-08-08 07:28:26 -05:00
|
LL | struct Foo; //~ ERROR: struct is never constructed
| ^^^^^^^^^^^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-3.rs:3:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: method is never used: `foo`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-3.rs:15:5
2018-08-08 07:28:26 -05:00
|
LL | fn foo(&self) { //~ ERROR: method is never used
| ^^^^^^^^^^^^^
error: function is never used: `bar`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-3.rs:20:1
2018-08-08 07:28:26 -05:00
|
LL | fn bar() { //~ ERROR: function is never used
| ^^^^^^^^
error: enum is never used: `c_void`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-3.rs:59:1
2018-08-08 07:28:26 -05:00
|
LL | enum c_void {} //~ ERROR: enum is never used
| ^^^^^^^^^^^
error: foreign function is never used: `free`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-3.rs:61:5
2018-08-08 07:28:26 -05:00
|
LL | fn free(p: *const c_void); //~ ERROR: foreign function is never used
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 5 previous errors