An auto trait was declared with a method or an associated item.
Erroneous code example:
#![allow(unused)]
fn main() {
unsafe auto trait Trait {
type Output; // error!
}
} Auto traits cannot have methods or associated items. For more information see the opt-in builtin traits RFC.
© 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/E0380.html