fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
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