fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> $DIR/wf-bounds.rs:15:22 3 | 4LL | 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]` 8note: required by a bound in `Vec` 9 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL 10 11error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 12 --> $DIR/wf-bounds.rs:18:23 13 | 14LL | 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]` 18note: required by a bound in `Wf` 19 --> $DIR/wf-bounds.rs:8:10 20 | 21LL | trait Wf<T> { 22 | ^ required by this bound in `Wf` 23help: consider relaxing the implicit `Sized` restriction 24 | 25LL | trait Wf<T: ?Sized> { 26 | ++++++++ 27 28error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 29 --> $DIR/wf-bounds.rs:21:44 30 | 31LL | fn nya3() -> impl Wf<(), Output = impl Wf<Vec<[u8]>>>; 32 | ^^^^^^^^^^^^^ doesn't have a size known at compile-time 33 | 34 = help: the trait `Sized` is not implemented for `[u8]` 35note: required by a bound in `Vec` 36 --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL 37 38error[E0277]: `T` doesn't implement `std::fmt::Display` 39 --> $DIR/wf-bounds.rs:24:26 40 | 41LL | fn nya4<T>() -> impl Wf<NeedsDisplay<T>>; 42 | ^^^^^^^^^^^^^^^^^^^ `T` cannot be formatted with the default formatter 43 | 44 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead 45note: required by a bound in `NeedsDisplay` 46 --> $DIR/wf-bounds.rs:12:24 47 | 48LL | struct NeedsDisplay<T: Display>(T); 49 | ^^^^^^^ required by this bound in `NeedsDisplay` 50 51error: aborting due to 4 previous errors 52 53For more information about this error, try `rustc --explain E0277`.