]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_passes/diagnostics.rs
Async methods
[rust.git] / src / librustc_passes / diagnostics.rs
index 5dd11617b8bfb92e0c3c3b245287218105afe973..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;
@@ -309,4 +310,5 @@ fn foo() {}
     E0666, // nested `impl Trait` is illegal
     E0667, // `impl Trait` in projections
     E0696, // `continue` pointing to a labeled block
+    E0706, // `async fn` in trait
 }