]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_short_circuit.stderr
6f8fca60c8098ca2ca6d286c59ddb83f69db5826
[rust.git] / src / test / ui / consts / const_short_circuit.stderr
1 error: new features like let bindings are not permitted in constant which also use short circuiting operators
2   --> $DIR/const_short_circuit.rs:6:9
3    |
4 LL |     let mut x = true && false;
5    |         ^^^^^
6    |
7 note: use of `&&` operator here
8   --> $DIR/const_short_circuit.rs:6:22
9    |
10 LL |     let mut x = true && false;
11    |                      ^^
12
13 error: new features like let bindings are not permitted in constant which also use short circuiting operators
14   --> $DIR/const_short_circuit.rs:11:9
15    |
16 LL |     let x = true && false;
17    |         ^
18    |
19 note: use of `&&` operator here
20   --> $DIR/const_short_circuit.rs:11:18
21    |
22 LL |     let x = true && false;
23    |                  ^^
24
25 error: aborting due to 2 previous errors
26