fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.4 KiB68 linesraw
1error: struct is never constructed: `Bar`
2  --> $DIR/lint-dead-code-1.rs:12:16
3   |
4LL |     pub struct Bar;
5   |                ^^^
6   |
7note: lint level defined here
8  --> $DIR/lint-dead-code-1.rs:5:9
9   |
10LL | #![deny(dead_code)]
11   |         ^^^^^^^^^
12
13error: static item is never used: `priv_static`
14  --> $DIR/lint-dead-code-1.rs:20:1
15   |
16LL | static priv_static: isize = 0;
17   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19error: constant item is never used: `priv_const`
20  --> $DIR/lint-dead-code-1.rs:27:1
21   |
22LL | const priv_const: isize = 0;
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25error: struct is never constructed: `PrivStruct`
26  --> $DIR/lint-dead-code-1.rs:35:8
27   |
28LL | struct PrivStruct;
29   |        ^^^^^^^^^^
30
31error: enum is never used: `priv_enum`
32  --> $DIR/lint-dead-code-1.rs:64:6
33   |
34LL | enum priv_enum { foo2, bar2 }
35   |      ^^^^^^^^^
36
37error: variant is never constructed: `bar3`
38  --> $DIR/lint-dead-code-1.rs:67:5
39   |
40LL |     bar3
41   |     ^^^^
42
43error: function is never used: `priv_fn`
44  --> $DIR/lint-dead-code-1.rs:88:4
45   |
46LL | fn priv_fn() {
47   |    ^^^^^^^
48
49error: function is never used: `foo`
50  --> $DIR/lint-dead-code-1.rs:93:4
51   |
52LL | fn foo() {
53   |    ^^^
54
55error: function is never used: `bar`
56  --> $DIR/lint-dead-code-1.rs:98:4
57   |
58LL | fn bar() {
59   |    ^^^
60
61error: function is never used: `baz`
62  --> $DIR/lint-dead-code-1.rs:102:4
63   |
64LL | fn baz() -> impl Copy {
65   |    ^^^
66
67error: aborting due to 10 previous errors
68