]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-eval/panic-assoc-never-type.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / consts / const-eval / panic-assoc-never-type.stderr
1 error[E0080]: evaluation of constant value failed
2   --> $DIR/panic-assoc-never-type.rs:9:21
3    |
4 LL |     const VOID: ! = panic!();
5    |                     ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/panic-assoc-never-type.rs:9:21
6    |
7    = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 note: erroneous constant used
10   --> $DIR/panic-assoc-never-type.rs:14:13
11    |
12 LL |     let _ = PrintName::VOID;
13    |             ^^^^^^^^^^^^^^^
14
15 note: erroneous constant used
16   --> $DIR/panic-assoc-never-type.rs:14:13
17    |
18 LL |     let _ = PrintName::VOID;
19    |             ^^^^^^^^^^^^^^^
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0080`.