]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/panic-assoc-never-type.stderr
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[rust.git] / src / test / ui / consts / const-eval / panic-assoc-never-type.stderr
1 warning: any use of this value will cause an error
2   --> $DIR/panic-assoc-never-type.rs:11:21
3    |
4 LL |     const VOID: ! = panic!();
5    |     ----------------^^^^^^^^-
6    |                     |
7    |                     the evaluated program panicked at 'explicit panic', $DIR/panic-assoc-never-type.rs:11:21
8    |
9 note: the lint level is defined here
10   --> $DIR/panic-assoc-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-assoc-never-type.rs:16:13
18    |
19 LL |     let _ = PrintName::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`.