1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> $DIR/wf-bounds.rs:9:22
4 LL | fn nya() -> impl Wf<Vec<[u8]>>;
5 | ^^^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `[u8]`
8 note: required by a bound in `Vec`
9 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
11 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
12 --> $DIR/wf-bounds.rs:12:23
14 LL | fn nya2() -> impl Wf<[u8]>;
15 | ^^^^^^^^ doesn't have a size known at compile-time
17 = help: the trait `Sized` is not implemented for `[u8]`
18 note: required by a bound in `Wf`
19 --> $DIR/wf-bounds.rs:6:10
22 | ^ required by this bound in `Wf`
23 help: consider relaxing the implicit `Sized` restriction
25 LL | trait Wf<T: ?Sized> {}
28 error: aborting due to 2 previous errors
30 For more information about this error, try `rustc --explain E0277`.