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

69 lines
1.8 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: struct is never constructed: `Bar`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:12:5
2018-08-08 07:28:26 -05:00
|
LL | pub struct Bar; //~ ERROR: struct is never constructed
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:5:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: static item is never used: `priv_static`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:20:1
2018-08-08 07:28:26 -05:00
|
LL | static priv_static: isize = 0; //~ ERROR: static item is never used
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: constant item is never used: `priv_const`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:27:1
2018-08-08 07:28:26 -05:00
|
LL | const priv_const: isize = 0; //~ ERROR: constant item is never used
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: struct is never constructed: `PrivStruct`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:35:1
2018-08-08 07:28:26 -05:00
|
LL | struct PrivStruct; //~ ERROR: struct is never constructed
| ^^^^^^^^^^^^^^^^^^
error: enum is never used: `priv_enum`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:64:1
2018-08-08 07:28:26 -05:00
|
LL | enum priv_enum { foo2, bar2 } //~ ERROR: enum is never used
| ^^^^^^^^^^^^^^
error: variant is never constructed: `bar3`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:67:5
2018-08-08 07:28:26 -05:00
|
LL | bar3 //~ ERROR variant is never constructed
| ^^^^
error: function is never used: `priv_fn`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:88:1
2018-08-08 07:28:26 -05:00
|
LL | fn priv_fn() { //~ ERROR: function is never used
| ^^^^^^^^^^^^
error: function is never used: `foo`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:93:1
2018-08-08 07:28:26 -05:00
|
LL | fn foo() { //~ ERROR: function is never used
| ^^^^^^^^
error: function is never used: `bar`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:98:1
2018-08-08 07:28:26 -05:00
|
LL | fn bar() { //~ ERROR: function is never used
| ^^^^^^^^
error: function is never used: `baz`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-1.rs:102:1
|
LL | fn baz() -> impl Copy { //~ ERROR: function is never used
| ^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 10 previous errors
2018-08-08 07:28:26 -05:00