File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
13401340 let mut error = tcx. sess . struct_span_err (
13411341 span,
13421342 & format ! (
1343- "new features like let bindings are not permitted in {} \
1343+ "new features like let bindings are not permitted in {}s \
13441344 which also use short circuiting operators",
13451345 mode,
13461346 ) ,
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
22 --> $DIR/const_short_circuit.rs:6:9
33 |
44LL | let mut x = true && false;
@@ -10,7 +10,7 @@ note: use of `&&` operator here
1010LL | let mut x = true && false;
1111 | ^^
1212
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
1414 --> $DIR/const_short_circuit.rs:11:9
1515 |
1616LL | let x = true && false;
You can’t perform that action at this time.
0 commit comments