rust/tests/ui/consts/const-eval/const_panic_2021.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
4.5 KiB
Plaintext
Raw Normal View History

2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:6:15
2021-07-09 08:33:42 -05:00
|
LL | const A: () = std::panic!("blåhaj");
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'blåhaj', $DIR/const_panic_2021.rs:6:15
2021-07-09 08:33:42 -05:00
|
= 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)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:9:15
2021-07-09 08:33:42 -05:00
|
LL | const B: () = std::panic!();
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:9:15
2021-07-09 08:33:42 -05:00
|
= 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)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:12:15
2021-07-09 08:33:42 -05:00
|
LL | const C: () = std::unreachable!();
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:12:15
2021-07-09 08:33:42 -05:00
|
= 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)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:15:15
2021-07-09 08:33:42 -05:00
|
LL | const D: () = std::unimplemented!();
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:15:15
2021-07-09 08:33:42 -05:00
|
= note: this error originates in the macro `std::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:18:15
2021-07-09 08:33:42 -05:00
|
LL | const E: () = std::panic!("{}", MSG);
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic_2021.rs:18:15
2021-07-09 08:33:42 -05:00
|
= 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)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:21:20
2021-07-09 08:33:42 -05:00
|
LL | const A_CORE: () = core::panic!("shark");
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'shark', $DIR/const_panic_2021.rs:21:20
2021-07-09 08:33:42 -05:00
|
= 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)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:24:20
2021-07-09 08:33:42 -05:00
|
LL | const B_CORE: () = core::panic!();
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic_2021.rs:24:20
|
= 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)
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:27:20
|
LL | const C_CORE: () = core::unreachable!();
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_2021.rs:27:20
2021-07-09 08:33:42 -05:00
|
= 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)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:30:20
2021-07-09 08:33:42 -05:00
|
LL | const D_CORE: () = core::unimplemented!();
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic_2021.rs:30:20
2021-07-09 08:33:42 -05:00
|
= note: this error originates in the macro `core::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-09 08:33:42 -05:00
error[E0080]: evaluation of constant value failed
2021-10-03 23:33:43 -05:00
--> $DIR/const_panic_2021.rs:33:20
|
LL | const E_CORE: () = core::panic!("{}", MSG);
2021-10-03 23:33:43 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic_2021.rs:33:20
|
= 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)
error: aborting due to 10 previous errors
2021-07-09 08:33:42 -05:00
For more information about this error, try `rustc --explain E0080`.