1 use std::time::Instant;
19 struct Foo<X, Y> (X, Y);
20 impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> {
21 fn test(&self) -> (X, Y) {
27 let x = Foo(Enum::First, CloneEnum::First);
29 //~^the method `test` exists for struct `Foo<Enum, CloneEnum>`, but its trait bounds were not satisfied [E0599]
33 let x = Foo(Struct{}, CloneStruct{});
35 //~^the method `test` exists for struct `Foo<Struct, CloneStruct>`, but its trait bounds were not satisfied [E0599]
39 let x = Foo(Vec::<Enum>::new(), Instant::now());
41 //~^the method `test` exists for struct `Foo<Vec<Enum>, Instant>`, but its trait bounds were not satisfied [E0599]