Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
traits
/
negative-bounds
/
negative-sized.rs
blob: 18369c784275375b96701d817f1332ce039be02d [
file
] [
log
] [
blame
]
#![
feature
(
negative_bounds
)]
fn
foo
<
T
:
!
Sized
>()
{}
fn
main
()
{
foo
::<()>();
//~^ ERROR the trait bound `(): !Sized` is not satisfied
}