rust/tests/ui/unsized/unsized-bare-typaram.rs

5 lines
111 B
Rust

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