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
|
||
|
|
}
|