mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
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.
This commit is contained in:
parent
a8e997c819
commit
a2a077460b
@ -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`,
|
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`.
|
`while`, and `loop`, are forbidden inside a `const`, `static`, or `const fn`.
|
||||||
|
|
||||||
```compile_fail,E0744
|
```compile_fail,E0658
|
||||||
const _: i32 = {
|
const _: i32 = {
|
||||||
let mut x = 0;
|
let mut x = 0;
|
||||||
loop {
|
loop {
|
||||||
|
Loading…
Reference in New Issue
Block a user