]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_passes/diagnostics.rs
Async methods
[rust.git] / src / librustc_passes / diagnostics.rs
index 4434def85ba727614324af6bcce0f32af045b94a..f1ec3371c3b9ab0400bd0b3a60daecff1497dcd3 100644 (file)
@@ -278,6 +278,7 @@ fn foo() {}
 Make sure to always label the `break`:
 
 ```
+# #![feature(label_break_value)]
 'l: loop {
     'a: {
         break 'l;
@@ -308,4 +309,6 @@ fn foo() {}
     E0642, // patterns aren't allowed in methods without bodies
     E0666, // nested `impl Trait` is illegal
     E0667, // `impl Trait` in projections
+    E0696, // `continue` pointing to a labeled block
+    E0706, // `async fn` in trait
 }