Files
rust/tests/ui/traits/negative-bounds/negative-sized.rs
2025-07-02 00:37:40 +00:00

9 lines
146 B
Rust

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