X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Flabel%2Flabel_misspelled_2.rs;h=55bbe6b30a5930382dbd75afac17550f22749d44;hb=8c5dafdcb8c7a569f27bc1e6dbf32736885ece64;hp=28bfe6f26cf0887633c3d1098a06ead5813927f7;hpb=74ddaf000cd6c17b9b99721fa84d091922c6eb14;p=rust.git diff --git a/src/test/ui/label/label_misspelled_2.rs b/src/test/ui/label/label_misspelled_2.rs index 28bfe6f26cf..55bbe6b30a5 100644 --- a/src/test/ui/label/label_misspelled_2.rs +++ b/src/test/ui/label/label_misspelled_2.rs @@ -7,11 +7,10 @@ fn main() { 'b: for _ in 0..1 { break b; //~ ERROR cannot find value `b` in this scope } - c: for _ in 0..1 { //~ ERROR expected identifier, found keyword `for` - //~^ ERROR expected `<`, found reserved identifier `_` + c: for _ in 0..1 { //~ ERROR malformed loop label break 'c; } - d: for _ in 0..1 { - break ; + d: for _ in 0..1 { //~ ERROR malformed loop label + break d; //~ ERROR cannot find value `d` in this scope } }