//@ edition:2021 pub trait Trait<'a, T> {} pub struct Struct; //~^ ERROR `T` is never used pub enum Enum {} //~^ ERROR `T` is never used pub union Union { //~^ ERROR `T` is never used f1: usize, } impl<'a, T> Struct for Trait<'a, T> {} //~^ ERROR expected trait, found struct `Struct` //~| ERROR trait objects must include the `dyn` keyword impl<'a, T> Enum for Trait<'a, T> {} //~^ ERROR expected trait, found enum `Enum` //~| ERROR trait objects must include the `dyn` keyword impl<'a, T> Union for Trait<'a, T> {} //~^ ERROR expected trait, found union `Union` //~| ERROR trait objects must include the `dyn` keyword fn main() {}