]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_passes/diagnostics.rs
Always report patterns more complex than `mut IDENT` as errors
[rust.git] / src / librustc_passes / diagnostics.rs
index 1bfa5943ee90a1849851be8459648cfa34b6018e..3597a6f18287e62e2e9d41640e2b918f8587b84e 100644 (file)
@@ -264,4 +264,5 @@ fn foo() {}
     E0226, // only a single explicit lifetime bound is permitted
     E0472, // asm! is unsupported on this target
     E0561, // patterns aren't allowed in function pointer types
+    E0642, // patterns aren't allowed in methods without bodies
 }