1 warning: any use of this value will cause an error
2 --> $DIR/panic-never-type.rs:8:17
4 LL | const VOID: ! = panic!();
5 | ----------------^^^^^^^^-
7 | the evaluated program panicked at 'explicit panic', $DIR/panic-never-type.rs:8:17
9 note: the lint level is defined here
10 --> $DIR/panic-never-type.rs:4:9
12 LL | #![warn(const_err)]
14 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
16 error[E0080]: erroneous constant used
17 --> $DIR/panic-never-type.rs:12:13
20 | ^^^^ referenced constant has errors
22 error: aborting due to previous error; 1 warning emitted
24 For more information about this error, try `rustc --explain E0080`.