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

72 lines
1.5 KiB
Plaintext
Raw Normal View History

error: static `priv_static` is never used
2022-06-22 13:33:59 -05:00
--> $DIR/lint-dead-code-1.rs:20:8
2018-08-08 07:28:26 -05:00
|
2022-01-29 14:10:41 -06:00
LL | static priv_static: isize = 0;
2022-06-22 13:33:59 -05:00
| ^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is 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: constant `priv_const` is never used
2022-06-22 13:33:59 -05:00
--> $DIR/lint-dead-code-1.rs:27:7
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | const priv_const: isize = 0;
2022-06-22 13:33:59 -05:00
| ^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: struct `PrivStruct` is never constructed
--> $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 `priv_enum` is never used
--> $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 `bar3` is never constructed
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 | enum used_enum {
| --------- variant in this enum
LL | foo3,
2019-03-09 06:03:44 -06:00
LL | bar3
2018-08-08 07:28:26 -05:00
| ^^^^
error: function `priv_fn` is never used
--> $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 `foo` is never used
--> $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 `bar` is never used
--> $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 `baz` is never used
--> $DIR/lint-dead-code-1.rs:102:4
|
2019-03-09 06:03:44 -06:00
LL | fn baz() -> impl Copy {
| ^^^
error: struct `Bar` is never constructed
2022-01-29 14:10:41 -06:00
--> $DIR/lint-dead-code-1.rs:12:16
|
LL | pub struct Bar;
| ^^^
error: aborting due to 10 previous errors
2018-08-08 07:28:26 -05:00