mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-27 01:33:04 +00:00
7 lines
165 B
Rust
7 lines
165 B
Rust
trait Trait {}
|
|
|
|
pub fn main() {
|
|
let x: Vec<dyn Trait + Sized> = Vec::new();
|
|
//~^ ERROR only auto traits can be used as additional traits in a trait object
|
|
}
|