]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277-2.rs
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0277-2.rs
1 struct Foo {
2     bar: Bar
3 }
4
5 struct Bar {
6     baz: Baz
7 }
8
9 struct Baz {
10     x: *const u8
11 }
12
13 fn is_send<T: Send>() { }
14
15 fn main() {
16     is_send::<Foo>();
17     //~^ ERROR `*const u8` cannot be sent between threads safely
18 }