This error indicates that a #[non_exhaustive] attribute was incorrectly placed on something other than a struct or enum.
Erroneous code example:
#[non_exhaustive]
trait Foo { }
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0701.html