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
1006 B23 linesraw
1error: any use of this value will cause an error
2  --> $DIR/short-circuit.rs:10:25
3   |
4LL | const _: bool = true || panic!();
5   | ------------------------^^^^^^^^-
6   |                         |
7   |                         the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:10:25
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/short-circuit.rs:11:26
14   |
15LL | const _: bool = false && panic!();
16   | -------------------------^^^^^^^^-
17   |                          |
18   |                          the evaluated program panicked at 'explicit panic', $DIR/short-circuit.rs:11:26
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: aborting due to 2 previous errors
23