error[E0225]: only auto traits can be used as additional traits in a trait object --> $DIR/E0225.rs:6:32 | LL | let _: Box; | ^^^^^^^^^^^^^^ 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; | ^^^ expanded from this alias error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0225`.