rust/src/test/ui/unsized/unsized-bare-typaram.rs
2018-12-25 21:08:33 -07:00

4 lines
111 B
Rust

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