blob: 45c7e07a2647109c71c7b7dacbc446e5b9d9376c [file] [log] [blame]
// run-rustfix
trait TraitWithAType {
type Item: ?Sized;
}
trait Trait {}
struct A {}
impl TraitWithAType for A {
type Item = dyn Trait; //~ ERROR E0277
}
fn main() {}