]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/panic-assoc-never-type.stderr
Rollup merge of #81465 - joshtriplett:duration-formatting-documentation, r=m-ou-se
[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    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
15    = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
16    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0080]: erroneous constant used
19   --> $DIR/panic-assoc-never-type.rs:17:13
20    |
21 LL |     let _ = PrintName::VOID;
22    |             ^^^^^^^^^^^^^^^ referenced constant has errors
23
24 error: aborting due to previous error; 1 warning emitted
25
26 For more information about this error, try `rustc --explain E0080`.