about summary refs log tree commit diff
path: root/tests/ui/traits/negative-bounds/negative-sized.rs
blob: 18369c784275375b96701d817f1332ce039be02d (plain)
1
2
3
4
5
6
7
8
#![feature(negative_bounds)]

fn foo<T: !Sized>() {}

fn main() {
    foo::<()>();
    //~^ ERROR the trait bound `(): !Sized` is not satisfied
}