summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0277-2.rs
blob: 428518705b83984e8f8287d0f39b2efb6701a272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct Foo {
    bar: Bar
}

struct Bar {
    baz: Baz
}

struct Baz {
    x: *const u8
}

fn is_send<T: Send>() { }

fn main() {
    is_send::<Foo>();
    //~^ ERROR `*const u8` cannot be sent between threads safely
}