]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/in-trait/wf-bounds.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / impl-trait / in-trait / wf-bounds.stderr
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2   --> $DIR/wf-bounds.rs:9:22
3    |
4 LL |     fn nya() -> impl Wf<Vec<[u8]>>;
5    |                      ^^^^^^^^^^^^^ doesn't have a size known at compile-time
6    |
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
10
11 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
12   --> $DIR/wf-bounds.rs:12:23
13    |
14 LL |     fn nya2() -> impl Wf<[u8]>;
15    |                       ^^^^^^^^ doesn't have a size known at compile-time
16    |
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
20    |
21 LL | trait Wf<T> {}
22    |          ^ required by this bound in `Wf`
23 help: consider relaxing the implicit `Sized` restriction
24    |
25 LL | trait Wf<T: ?Sized> {}
26    |           ++++++++
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0277`.