Skip to content

Commit a2a0774

Browse files
Look for "unstable feature" error code in test
Conditionals and loops now have unstable features, and `feature_err` has its own error code. I think that `feature_err` should take an error code as a parameter, but don't have the energy to make this change throughout the codebase. Also, the error code system may be torn out entirely.
1 parent a8e997c commit a2a0774

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+1
-1
lines changed

src/librustc_error_codes/error_codes/E0744.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Control-flow expressions are not allowed inside a const context.
33
At the moment, `if` and `match`, as well as the looping constructs `for`,
44
`while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`.
55

6-
```compile_fail,E0744
6+
```compile_fail,E0658
77
const _: i32 = {
88
let mut x = 0;
99
loop {

0 commit comments

Comments
 (0)