File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1340,7 +1340,7 @@ impl MirPass for QualifyAndPromoteConstants {
1340
1340
let mut error = tcx. sess . struct_span_err (
1341
1341
span,
1342
1342
& format ! (
1343
- "new features like let bindings are not permitted in {} \
1343
+ "new features like let bindings are not permitted in {}s \
1344
1344
which also use short circuiting operators",
1345
1345
mode,
1346
1346
) ,
Original file line number Diff line number Diff line change 1
- error: new features like let bindings are not permitted in constant which also use short circuiting operators
1
+ error: new features like let bindings are not permitted in constants which also use short circuiting operators
2
2
--> $DIR/const_short_circuit.rs:6:9
3
3
|
4
4
LL | let mut x = true && false;
@@ -10,7 +10,7 @@ note: use of `&&` operator here
10
10
LL | let mut x = true && false;
11
11
| ^^
12
12
13
- error: new features like let bindings are not permitted in constant which also use short circuiting operators
13
+ error: new features like let bindings are not permitted in constants which also use short circuiting operators
14
14
--> $DIR/const_short_circuit.rs:11:9
15
15
|
16
16
LL | let x = true && false;
You can’t perform that action at this time.
0 commit comments