]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/const-eval-query-stack.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const-eval-query-stack.stderr
CommitLineData
5869c6ff 1warning: any use of this value will cause an error
923072b8 2 --> $DIR/const-eval-query-stack.rs:19:16
3dfed10e 3 |
5869c6ff 4LL | const X: i32 = 1 / 0;
064997fb 5 | ------------ ^^^^^ attempt to divide `1_i32` by zero
3dfed10e 6 |
5869c6ff 7note: the lint level is defined here
923072b8 8 --> $DIR/const-eval-query-stack.rs:18:8
5869c6ff
XL
9 |
10LL | #[warn(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>
3dfed10e 14
5869c6ff 15error[E0080]: evaluation of constant value failed
923072b8 16 --> $DIR/const-eval-query-stack.rs:23:28
5869c6ff
XL
17 |
18LL | let x: &'static i32 = &X;
19 | ^ referenced constant has errors
923072b8
FG
20
21error: erroneous constant used
22 --> $DIR/const-eval-query-stack.rs:23:27
23 |
24LL | let x: &'static i32 = &X;
25 | ^^ referenced constant has errors
26 |
27 = note: `#[deny(const_err)]` on by default
28 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
30
3dfed10e 31query stack during panic:
923072b8
FG
32#0 [mir_drops_elaborated_and_const_checked] elaborating drops for `main`
33#1 [optimized_mir] optimizing MIR for `main`
34#2 [collect_and_partition_mono_items] collect_and_partition_mono_items
3dfed10e 35end of query stack
064997fb
FG
36Future incompatibility report: Future breakage diagnostic:
37warning: any use of this value will cause an error
38 --> $DIR/const-eval-query-stack.rs:19:16
39 |
40LL | const X: i32 = 1 / 0;
41 | ------------ ^^^^^ attempt to divide `1_i32` by zero
42 |
43note: the lint level is defined here
44 --> $DIR/const-eval-query-stack.rs:18:8
45 |
46LL | #[warn(const_err)]
47 | ^^^^^^^^^
48 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
49 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
50
51Future breakage diagnostic:
52error: erroneous constant used
53 --> $DIR/const-eval-query-stack.rs:23:27
54 |
55LL | let x: &'static i32 = &X;
56 | ^^ referenced constant has errors
57 |
58 = note: `#[deny(const_err)]` on by default
59 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
60 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
61