rustc/tests/ui/unsized/unsized-bare-typaram.rs
2023-08-02 10:33:26 +02: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() { }