2020-10-16 17:46:59 -03:00
|
|
|
#![feature(unsized_locals, unsized_fn_params)]
|
2020-05-23 09:35:22 -03:00
|
|
|
//~^ WARN the feature `unsized_locals` is incomplete
|
2018-11-19 00:19:14 +09:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
struct A<X: ?Sized>(X);
|
|
|
|
A as fn(str) -> A<str>;
|
|
|
|
//~^ERROR the size for values of type `str` cannot be known at compilation time
|
|
|
|
}
|