]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_short_circuit.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const_short_circuit.stderr
1 error: 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    |
4 LL |     let mut x = true && false;
5    |         ^^^^^
6    |
7 note: 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    |
10 LL |     let mut x = true && false;
11    |                      ^^
12
13 error: 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    |
16 LL |     let x = true && false;
17    |         ^
18    |
19 note: 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    |
22 LL |     let x = true && false;
23    |                  ^^
24
25 error: aborting due to 2 previous errors
26