1 // Tests that default impls do not have to supply all items but regular impls do.
3 #![feature(specialization)]
6 fn foo_one(&self) -> &'static str;
7 fn foo_two(&self) -> &'static str;
12 default impl<T> Foo for T {
13 fn foo_one(&self) -> &'static str {
18 impl Foo for MyStruct {}
19 //~^ ERROR not all trait items implemented, missing: `foo_two` [E0046]
22 println!("{}", MyStruct.foo_one());