]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-err-multi.stderr
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / consts / const-err-multi.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const-err-multi.rs:3:19
3    |
4 LL | pub const A: i8 = -i8::MIN;
5    | ---------------   ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
6    |
7 note: the lint level is defined here
8   --> $DIR/const-err-multi.rs:1:9
9    |
10 LL | #![deny(const_err)]
11    |         ^^^^^^^^^
12    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
14
15 error: any use of this value will cause an error
16   --> $DIR/const-err-multi.rs:6:19
17    |
18 LL | pub const B: i8 = A;
19    | ---------------   ^ referenced constant has errors
20    |
21    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
23
24 error: any use of this value will cause an error
25   --> $DIR/const-err-multi.rs:9:19
26    |
27 LL | pub const C: u8 = A as u8;
28    | ---------------   ^ referenced constant has errors
29    |
30    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
32
33 error: any use of this value will cause an error
34   --> $DIR/const-err-multi.rs:12:24
35    |
36 LL | pub const D: i8 = 50 - A;
37    | ---------------        ^ referenced constant has errors
38    |
39    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
41
42 error: aborting due to 4 previous errors
43
44 Future incompatibility report: Future breakage diagnostic:
45 error: any use of this value will cause an error
46   --> $DIR/const-err-multi.rs:3:19
47    |
48 LL | pub const A: i8 = -i8::MIN;
49    | ---------------   ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
50    |
51 note: the lint level is defined here
52   --> $DIR/const-err-multi.rs:1:9
53    |
54 LL | #![deny(const_err)]
55    |         ^^^^^^^^^
56    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
57    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
58
59 Future breakage diagnostic:
60 error: any use of this value will cause an error
61   --> $DIR/const-err-multi.rs:6:19
62    |
63 LL | pub const B: i8 = A;
64    | ---------------   ^ referenced constant has errors
65    |
66 note: the lint level is defined here
67   --> $DIR/const-err-multi.rs:1:9
68    |
69 LL | #![deny(const_err)]
70    |         ^^^^^^^^^
71    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
73
74 Future breakage diagnostic:
75 error: any use of this value will cause an error
76   --> $DIR/const-err-multi.rs:9:19
77    |
78 LL | pub const C: u8 = A as u8;
79    | ---------------   ^ referenced constant has errors
80    |
81 note: the lint level is defined here
82   --> $DIR/const-err-multi.rs:1:9
83    |
84 LL | #![deny(const_err)]
85    |         ^^^^^^^^^
86    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
88
89 Future breakage diagnostic:
90 error: any use of this value will cause an error
91   --> $DIR/const-err-multi.rs:12:24
92    |
93 LL | pub const D: i8 = 50 - A;
94    | ---------------        ^ referenced constant has errors
95    |
96 note: the lint level is defined here
97   --> $DIR/const-err-multi.rs:1:9
98    |
99 LL | #![deny(const_err)]
100    |         ^^^^^^^^^
101    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
102    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
103