about summary refs log tree commit diff
path: root/tests/ui/traits/vtable/vtable-vacant.rs
blob: b023565c56e6601fd30b3f20ff3ca0686de8e6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#![feature(rustc_attrs)]
#![feature(negative_impls)]

// B --> A

trait A {
    fn foo_a1(&self) {}
    fn foo_a2(&self) where Self: Send {}
}

trait B: A {
    fn foo_b1(&self) {}
    fn foo_b2(&self) where Self: Send {}
}

struct S;
impl !Send for S {}

#[rustc_dump_vtable]
impl A for S {}
//~^ error vtable

#[rustc_dump_vtable]
impl B for S {}
//~^ error vtable

fn main() {}