rust/tests/ui/unsized/unsized-bare-typaram.rs
2023-01-11 09:32:08 +00:00

5 lines
111 B
Rust

fn bar<T: Sized>() { }
fn foo<T: ?Sized>() { bar::<T>() }
//~^ ERROR the size for values of type
fn main() { }