about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/error_codes/E0701.md
blob: e1be0e915f4408067640020a857c250ad6b10c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
#### Note: this error code is no longer emitted by the compiler.

This error indicates that a `#[non_exhaustive]` attribute was incorrectly placed
on something other than a struct or enum.

Erroneous code example:

```ignore (no longer emitted)
#[non_exhaustive]
trait Foo { }
```