]> git.proxmox.com Git - rustc.git/blame - tests/ui/consts/const-eval/const_panic_2021.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-eval / const_panic_2021.stderr
CommitLineData
94222f64 1error[E0080]: evaluation of constant value failed
c295e0f8 2 --> $DIR/const_panic_2021.rs:6:15
94222f64
XL
3 |
4LL | const A: () = std::panic!("blåhaj");
c295e0f8 5 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'blåhaj', $DIR/const_panic_2021.rs:6:15
94222f64 6 |
064997fb 7 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
8
9error[E0080]: evaluation of constant value failed
c295e0f8 10 --> $DIR/const_panic_2021.rs:9:15
94222f64
XL
11 |
12LL | const B: () = std::panic!();
c295e0f8 13 | ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:9:15
94222f64 14 |
064997fb 15 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
16
17error[E0080]: evaluation of constant value failed
c295e0f8 18 --> $DIR/const_panic_2021.rs:12:15
94222f64
XL
19 |
20LL | const C: () = std::unreachable!();
c295e0f8 21 | ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:12:15
94222f64 22 |
064997fb 23 = note: this error originates in the macro `$crate::panic::unreachable_2021` which comes from the expansion of the macro `std::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
24
25error[E0080]: evaluation of constant value failed
c295e0f8 26 --> $DIR/const_panic_2021.rs:15:15
94222f64
XL
27 |
28LL | const D: () = std::unimplemented!();
c295e0f8 29 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:15:15
94222f64 30 |
a2a8927a 31 = note: this error originates in the macro `std::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
32
33error[E0080]: evaluation of constant value failed
c295e0f8 34 --> $DIR/const_panic_2021.rs:18:15
94222f64 35 |
c295e0f8
XL
36LL | const E: () = std::panic!("{}", MSG);
37 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic_2021.rs:18:15
94222f64 38 |
064997fb 39 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
40
41error[E0080]: evaluation of constant value failed
c295e0f8 42 --> $DIR/const_panic_2021.rs:21:20
94222f64 43 |
c295e0f8
XL
44LL | const A_CORE: () = core::panic!("shark");
45 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'shark', $DIR/const_panic_2021.rs:21:20
94222f64 46 |
064997fb 47 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
48
49error[E0080]: evaluation of constant value failed
c295e0f8 50 --> $DIR/const_panic_2021.rs:24:20
94222f64 51 |
c295e0f8
XL
52LL | const B_CORE: () = core::panic!();
53 | ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:24:20
54 |
064997fb 55 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
c295e0f8
XL
56
57error[E0080]: evaluation of constant value failed
58 --> $DIR/const_panic_2021.rs:27:20
59 |
60LL | const C_CORE: () = core::unreachable!();
61 | ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:27:20
94222f64 62 |
064997fb 63 = note: this error originates in the macro `$crate::panic::unreachable_2021` which comes from the expansion of the macro `core::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64
XL
64
65error[E0080]: evaluation of constant value failed
c295e0f8 66 --> $DIR/const_panic_2021.rs:30:20
94222f64 67 |
c295e0f8
XL
68LL | const D_CORE: () = core::unimplemented!();
69 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:30:20
94222f64 70 |
a2a8927a 71 = note: this error originates in the macro `core::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
94222f64 72
c295e0f8
XL
73error[E0080]: evaluation of constant value failed
74 --> $DIR/const_panic_2021.rs:33:20
75 |
76LL | const E_CORE: () = core::panic!("{}", MSG);
77 | ^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic_2021.rs:33:20
78 |
064997fb 79 = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info)
c295e0f8
XL
80
81error: aborting due to 10 previous errors
94222f64
XL
82
83For more information about this error, try `rustc --explain E0080`.