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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
}