rust/src/test/ui/error-codes/E0225.stderr
Alexander Regueiro 72e5e8bfa7 Update tests.
2019-05-20 16:12:49 +01:00

19 lines
668 B
Plaintext

error[E0225]: only auto traits can be used as additional traits in a trait object
--> $DIR/E0225.rs:6:32
|
LL | let _: Box<std::io::Read + std::io::Write>;
| ^^^^^^^^^^^^^^ non-auto additional trait
error[E0225]: only auto traits can be used as additional traits in a trait object
--> $DIR/E0225.rs:8:16
|
LL | trait Foo = std::io::Read + std::io::Write;
| -------------- non-auto additional trait
...
LL | let _: Box<Foo>;
| ^^^ expanded from this alias
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0225`.