fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0225]: only auto traits can be used as additional traits in a trait object 2 --> $DIR/E0225.rs:6:36 3 | 4LL | let _: Box<dyn std::io::Read + std::io::Write>; 5 | ------------- ^^^^^^^^^^^^^^ 6 | | | 7 | | additional non-auto trait 8 | | trait alias used in trait object type (additional use) 9 | first non-auto trait 10 | trait alias used in trait object type (first use) 11 12error[E0225]: only auto traits can be used as additional traits in a trait object 13 --> $DIR/E0225.rs:8:20 14 | 15LL | trait Foo = std::io::Read + std::io::Write; 16 | ------------- -------------- additional non-auto trait 17 | | 18 | first non-auto trait 19... 20LL | let _: Box<dyn Foo>; 21 | ^^^ 22 | | 23 | trait alias used in trait object type (additional use) 24 | trait alias used in trait object type (first use) 25 26error: aborting due to 2 previous errors 27 28For more information about this error, try `rustc --explain E0225`.