diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-12-11 10:09:10 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2019-12-13 10:39:14 -0800 |
| commit | a2a077460b3365a95c475ce3b33fe7987c4bfa23 (patch) | |
| tree | 6986a9e74aadb001af40b307834c6b54c48f2ad2 | |
| parent | a8e997c819cc3cb9c70062da93809cd6f2540a0a (diff) | |
| download | rust-a2a077460b3365a95c475ce3b33fe7987c4bfa23.tar.gz rust-a2a077460b3365a95c475ce3b33fe7987c4bfa23.zip | |
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.
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0744.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_error_codes/error_codes/E0744.md b/src/librustc_error_codes/error_codes/E0744.md index b299102fd69..602fbc50a71 100644 --- a/src/librustc_error_codes/error_codes/E0744.md +++ b/src/librustc_error_codes/error_codes/E0744.md @@ -3,7 +3,7 @@ Control-flow expressions are not allowed inside a const context. At the moment, `if` and `match`, as well as the looping constructs `for`, `while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`. -```compile_fail,E0744 +```compile_fail,E0658 const _: i32 = { let mut x = 0; loop { |
