]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/panic-never-type.stderr
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / test / ui / consts / const-eval / panic-never-type.stderr
1 warning: any use of this value will cause an error
2   --> $DIR/panic-never-type.rs:8:17
3    |
4 LL | const VOID: ! = panic!();
5    | ----------------^^^^^^^^-
6    |                 |
7    |                 the evaluated program panicked at 'explicit panic', $DIR/panic-never-type.rs:8:17
8    |
9 note: the lint level is defined here
10   --> $DIR/panic-never-type.rs:4:9
11    |
12 LL | #![warn(const_err)]
13    |         ^^^^^^^^^
14    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error[E0080]: erroneous constant used
17   --> $DIR/panic-never-type.rs:12:13
18    |
19 LL |     let _ = VOID;
20    |             ^^^^ referenced constant has errors
21
22 error: aborting due to previous error; 1 warning emitted
23
24 For more information about this error, try `rustc --explain E0080`.