]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const_panic_libcore.stderr
e76446f1015baa24ae770d9baffb9dccfab62254
[rust.git] / src / test / ui / consts / const-eval / const_panic_libcore.stderr
1 error: any use of this value will cause an error
2   --> $DIR/const_panic_libcore.rs:5:15
3    |
4 LL | const Z: () = panic!("cheese");
5    | --------------^^^^^^^^^^^^^^^^-
6    |               |
7    |               the evaluated program panicked at 'cheese', $DIR/const_panic_libcore.rs:5:15
8    |
9    = note: `#[deny(const_err)]` on by default
10    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
11
12 error: any use of this value will cause an error
13   --> $DIR/const_panic_libcore.rs:8:15
14    |
15 LL | const Y: () = unreachable!();
16    | --------------^^^^^^^^^^^^^^-
17    |               |
18    |               the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic_libcore.rs:8:15
19    |
20    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
21
22 error: any use of this value will cause an error
23   --> $DIR/const_panic_libcore.rs:11:15
24    |
25 LL | const X: () = unimplemented!();
26    | --------------^^^^^^^^^^^^^^^^-
27    |               |
28    |               the evaluated program panicked at 'not yet implemented', $DIR/const_panic_libcore.rs:11:15
29    |
30    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
31
32 error: aborting due to 3 previous errors
33