fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.4 KiB33 linesraw
1error: any use of this value will cause an error
2  --> $DIR/const_panic.rs:4:19
3   |
4LL | pub const Z: () = panic!("cheese");
5   | ------------------^^^^^^^^^^^^^^^^-
6   |                   |
7   |                   the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19
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
12error: any use of this value will cause an error
13  --> $DIR/const_panic.rs:7:19
14   |
15LL | pub const Y: () = unreachable!();
16   | ------------------^^^^^^^^^^^^^^-
17   |                   |
18   |                   the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:7:19
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
22error: any use of this value will cause an error
23  --> $DIR/const_panic.rs:10:19
24   |
25LL | pub const X: () = unimplemented!();
26   | ------------------^^^^^^^^^^^^^^^^-
27   |                   |
28   |                   the evaluated program panicked at 'not yet implemented', $DIR/const_panic.rs:10:19
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
32error: aborting due to 3 previous errors
33