summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/rpit-not-sized.rs
blob: bd25940780a1622bf51430810c996fb154219b75 (plain)
1
2
3
4
5
6
fn foo() -> impl ?Sized {
    //~^ ERROR the size for values of type `impl ?Sized` cannot be known at compilation time
    ()
}

fn main() {}