|
1 | 1 | error: static of uninhabited type |
2 | | - --> $DIR/uninhabited-static.rs:12:1 |
| 2 | + --> $DIR/uninhabited-static.rs:9:1 |
3 | 3 | | |
4 | 4 | LL | static VOID2: Void = unsafe { std::mem::transmute(()) }; |
5 | 5 | | ^^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
8 | | - = note: for more information, see issue #74840 <https://github.com/rust-lang/rust/issues/74840> |
9 | 7 | = note: uninhabited statics cannot be initialized, and any access would be an immediate error |
10 | | -note: the lint level is defined here |
11 | | - --> $DIR/uninhabited-static.rs:2:9 |
12 | | - | |
13 | | -LL | #![deny(uninhabited_static)] |
14 | | - | ^^^^^^^^^^^^^^^^^^ |
15 | 8 |
|
16 | 9 | error: static of uninhabited type |
17 | | - --> $DIR/uninhabited-static.rs:15:1 |
| 10 | + --> $DIR/uninhabited-static.rs:12:1 |
18 | 11 | | |
19 | 12 | LL | static NEVER2: Void = unsafe { std::mem::transmute(()) }; |
20 | 13 | | ^^^^^^^^^^^^^^^^^^^ |
21 | 14 | | |
22 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
23 | | - = note: for more information, see issue #74840 <https://github.com/rust-lang/rust/issues/74840> |
24 | 15 | = note: uninhabited statics cannot be initialized, and any access would be an immediate error |
25 | 16 |
|
26 | 17 | error: static of uninhabited type |
27 | | - --> $DIR/uninhabited-static.rs:6:5 |
| 18 | + --> $DIR/uninhabited-static.rs:5:5 |
28 | 19 | | |
29 | 20 | LL | static VOID: Void; |
30 | 21 | | ^^^^^^^^^^^^^^^^^ |
31 | 22 | | |
32 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
33 | | - = note: for more information, see issue #74840 <https://github.com/rust-lang/rust/issues/74840> |
34 | 23 | = note: uninhabited statics cannot be initialized, and any access would be an immediate error |
35 | 24 |
|
36 | 25 | error: static of uninhabited type |
37 | | - --> $DIR/uninhabited-static.rs:8:5 |
| 26 | + --> $DIR/uninhabited-static.rs:6:5 |
38 | 27 | | |
39 | 28 | LL | static NEVER: !; |
40 | 29 | | ^^^^^^^^^^^^^^^ |
41 | 30 | | |
42 | | - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
43 | | - = note: for more information, see issue #74840 <https://github.com/rust-lang/rust/issues/74840> |
44 | 31 | = note: uninhabited statics cannot be initialized, and any access would be an immediate error |
45 | 32 |
|
46 | 33 | error[E0080]: constructing invalid value: encountered a value of uninhabited type `Void` |
47 | | - --> $DIR/uninhabited-static.rs:12:31 |
| 34 | + --> $DIR/uninhabited-static.rs:9:31 |
48 | 35 | | |
49 | 36 | LL | static VOID2: Void = unsafe { std::mem::transmute(()) }; |
50 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `VOID2` failed here |
51 | 38 |
|
52 | 39 | error[E0080]: constructing invalid value: encountered a value of uninhabited type `Void` |
53 | | - --> $DIR/uninhabited-static.rs:15:32 |
| 40 | + --> $DIR/uninhabited-static.rs:12:32 |
54 | 41 | | |
55 | 42 | LL | static NEVER2: Void = unsafe { std::mem::transmute(()) }; |
56 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `NEVER2` failed here |
|
0 commit comments