1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/impl_wf.rs:11:6
4 LL | impl Foo for str { }
5 | ^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `str`
8 note: required by a bound in `Foo`
9 --> $DIR/impl_wf.rs:3:12
11 LL | trait Foo: Sized { }
12 | ^^^^^ required by this bound in `Foo`
14 error[E0277]: the trait bound `f32: Foo` is not satisfied
15 --> $DIR/impl_wf.rs:22:6
17 LL | impl Baz<f32> for f32 { }
18 | ^^^^^^^^ the trait `Foo` is not implemented for `f32`
20 = help: the trait `Foo` is implemented for `i32`
21 note: required by a bound in `Baz`
22 --> $DIR/impl_wf.rs:18:31
24 LL | trait Baz<U: ?Sized> where U: Foo { }
25 | ^^^ required by this bound in `Baz`
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0277`.