warning: trait objects without an explicit `dyn` are deprecated --> $DIR/import-after-macro-expand-4.rs:12:22 | LL | pub struct S(Vec

); | ^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: use `dyn` | LL | pub struct S(Vec); | +++ warning: trait objects without an explicit `dyn` are deprecated --> $DIR/import-after-macro-expand-4.rs:12:22 | LL | pub struct S(Vec

); | ^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | LL | pub struct S(Vec); | +++ warning: trait objects without an explicit `dyn` are deprecated --> $DIR/import-after-macro-expand-4.rs:12:22 | LL | pub struct S(Vec

); | ^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | LL | pub struct S(Vec); | +++ error[E0277]: the size for values of type `(dyn a::P + 'static)` cannot be known at compilation time --> $DIR/import-after-macro-expand-4.rs:12:18 | LL | pub struct S(Vec

); | ^^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `(dyn a::P + 'static)` note: required by a bound in `Vec` --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL error: aborting due to previous error; 3 warnings emitted For more information about this error, try `rustc --explain E0277`.