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