mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 04:48:32 +00:00
9 lines
146 B
Rust
9 lines
146 B
Rust
#![feature(negative_bounds)]
|
|
|
|
fn foo<T: !Sized>() {}
|
|
|
|
fn main() {
|
|
foo::<()>();
|
|
//~^ ERROR the trait bound `(): !Sized` is not satisfied
|
|
}
|