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/ice-6251.rs:4:45 3 | 4LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> { 5 | ^ doesn't have a size known at compile-time 6 | 7 = help: the trait `std::marker::Sized` is not implemented for `[u8]` 8 = help: unsized fn params are gated as an unstable feature 9help: function arguments must have a statically known size, borrowed types always have a known size 10 | 11LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> { 12 | + 13 14error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 15 --> $DIR/ice-6251.rs:4:54 16 | 17LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> { 18 | ^ doesn't have a size known at compile-time 19 | 20 = help: the trait `std::marker::Sized` is not implemented for `[u8]` 21 = note: the return type of a function must have a statically known size 22 23error[E0308]: mismatched types 24 --> $DIR/ice-6251.rs:4:44 25 | 26LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> { 27 | ^^^^^^^^^^^ expected `usize`, found closure 28 | 29 = note: expected type `usize` 30 found closure `{closure@$DIR/ice-6251.rs:4:44: 4:53}` 31 32error: aborting due to 3 previous errors 33 34Some errors have detailed explanations: E0277, E0308. 35For more information about an error, try `rustc --explain E0277`.