Files
rust/tests/ui/traits/negative-bounds/negative-sized.rs

9 lines
146 B
Rust
Raw Normal View History

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