rust/tests/ui/object-safety/assoc_type_bounds_implicit_...

12 lines
190 B
Rust

//@ run-rustfix
#![allow(dead_code)]
trait TraitWithAType {
type Item;
}
trait Trait {}
struct A {}
impl TraitWithAType for A {
type Item = dyn Trait; //~ ERROR E0277
}
fn main() {}