diff options
Diffstat (limited to '')
-rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0701.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0701.md b/compiler/rustc_error_codes/src/error_codes/E0701.md new file mode 100644 index 000000000..4965e6431 --- /dev/null +++ b/compiler/rustc_error_codes/src/error_codes/E0701.md @@ -0,0 +1,9 @@ +This error indicates that a `#[non_exhaustive]` attribute was incorrectly placed +on something other than a struct or enum. + +Erroneous code example: + +```compile_fail,E0701 +#[non_exhaustive] +trait Foo { } +``` |