fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1.1 KiB26 linesraw
1error: new features like let bindings are not permitted in constants which also use short circuiting operators
2  --> $DIR/const_short_circuit.rs:4:9
3   |
4LL |     let mut x = true && false;
5   |         ^^^^^
6   |
7note: use of `&&` operator here does not actually short circuit due to the const evaluator presently not being able to do control flow. See https://github.com/rust-lang/rust/issues/49146 for more information.
8  --> $DIR/const_short_circuit.rs:4:22
9   |
10LL |     let mut x = true && false;
11   |                      ^^
12
13error: new features like let bindings are not permitted in constants which also use short circuiting operators
14  --> $DIR/const_short_circuit.rs:9:9
15   |
16LL |     let x = true && false;
17   |         ^
18   |
19note: use of `&&` operator here does not actually short circuit due to the const evaluator presently not being able to do control flow. See https://github.com/rust-lang/rust/issues/49146 for more information.
20  --> $DIR/const_short_circuit.rs:9:18
21   |
22LL |     let x = true && false;
23   |                  ^^
24
25error: aborting due to 2 previous errors
26