mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
11 lines
344 B
Rust
11 lines
344 B
Rust
#![feature(trait_alias)]
|
|
|
|
trait Foo = std::io::Read + std::io::Write;
|
|
|
|
fn main() {
|
|
let _: Box<dyn std::io::Read + std::io::Write>;
|
|
//~^ ERROR only auto traits can be used as additional traits in a trait object [E0225]
|
|
let _: Box<dyn Foo>;
|
|
//~^ ERROR only auto traits can be used as additional traits in a trait object [E0225]
|
|
}
|