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

69 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: struct is never constructed: `Bar`
--> $DIR/lint-dead-code-1.rs:12:16
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | pub struct Bar;
| ^^^
2018-08-08 07:28:26 -05:00
|
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
|
2019-03-09 06:03:44 -06:00
LL | static priv_static: isize = 0;
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
|
2019-03-09 06:03:44 -06:00
LL | const priv_const: isize = 0;
2018-08-08 07:28:26 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: struct is never constructed: `PrivStruct`
--> $DIR/lint-dead-code-1.rs:35:8
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | struct PrivStruct;
| ^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: enum is never used: `priv_enum`
--> $DIR/lint-dead-code-1.rs:64:6
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | enum priv_enum { foo2, bar2 }
| ^^^^^^^^^
2018-08-08 07:28:26 -05:00
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
|
2019-03-09 06:03:44 -06:00
LL | bar3
2018-08-08 07:28:26 -05:00
| ^^^^
error: function is never used: `priv_fn`
--> $DIR/lint-dead-code-1.rs:88:4
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn priv_fn() {
| ^^^^^^^
2018-08-08 07:28:26 -05:00
error: function is never used: `foo`
--> $DIR/lint-dead-code-1.rs:93:4
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn foo() {
| ^^^
2018-08-08 07:28:26 -05:00
error: function is never used: `bar`
--> $DIR/lint-dead-code-1.rs:98: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: function is never used: `baz`
--> $DIR/lint-dead-code-1.rs:102:4
|
2019-03-09 06:03:44 -06:00
LL | fn baz() -> impl Copy {
| ^^^
error: aborting due to 10 previous errors
2018-08-08 07:28:26 -05:00