]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/negative-impls/negated-auto-traits-rpass.rs
2 #![allow(unused_variables)]
3 #![feature(negative_impls)]
8 impl !Send
for WaitToken {}
10 pub struct Test
<T
>(#[allow(unused_tuple_struct_fields)] T);
11 unsafe impl<T
: '
static> Send
for Test
<T
> {}
13 pub fn spawn
<F
>(_
: F
) -> () where F
: FnOnce(), F
: Send
+ '
static {}
16 let wt
= Test(WaitToken
);
19 println
!("Hello, World!");