rust/tests/ui/impl-trait/rpit-not-sized.rs
2023-01-11 09:32:08 +00:00

7 lines
142 B
Rust

fn foo() -> impl ?Sized {
//~^ ERROR the size for values of type `impl ?Sized` cannot be known at compilation time
()
}
fn main() {}