1 error[E0053]: method `bar` has an incompatible type for trait
2 --> $DIR/specialization-broken.rs:16:22
4 LL | default impl<U> Foo for U
5 | - this type parameter
7 LL | fn bar(&self) -> U {
10 | expected associated type, found type parameter `U`
11 | help: change the output type to match the trait: `impl Sized`
14 --> $DIR/specialization-broken.rs:9:22
16 LL | fn bar(&self) -> impl Sized;
18 = note: expected fn pointer `fn(&U) -> impl Sized`
19 found fn pointer `fn(&U) -> U`
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0053`.