#![allow(bare_trait_objects)] struct Foo; fn foo(_x: Box) { } //~ ERROR expected trait, found struct `Foo` type A = Box>; //~ ERROR expected trait, found struct `Vec` fn main() { }