fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
930 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 (in Nightly builds, run with -Z 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 (in Nightly builds, run with -Z macro-backtrace for more info)
21
22error: aborting due to 2 previous errors
23