fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `T` cannot be known at compilation time 2 --> $DIR/unsized-fn-arg.rs:5:17 3 | 4LL | fn f<T: ?Sized>(t: T) {} 5 | - ^ doesn't have a size known at compile-time 6 | | 7 | this type parameter needs to be `Sized` 8 | 9 = help: unsized fn params are gated as an unstable feature 10help: consider removing the `?Sized` bound to make the type parameter `Sized` 11 | 12LL - fn f<T: ?Sized>(t: T) {} 13LL + fn f<T>(t: T) {} 14 | 15help: function arguments must have a statically known size, borrowed types always have a known size 16 | 17LL | fn f<T: ?Sized>(t: &T) {} 18 | + 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0277`.