]> git.proxmox.com Git - rustc.git/blame - src/test/ui/recursion/recursive-requirements.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / recursion / recursive-requirements.stderr
CommitLineData
0bf4aa26 1error[E0277]: `*const Bar` cannot be shared between threads safely
0731742a 2 --> $DIR/recursive-requirements.rs:16:12
2c00a5a8 3 |
e1599b0c 4LL | struct AssertSync<T: Sync>(PhantomData<T>);
ba9703b0 5 | ---- required by this bound in `AssertSync`
e1599b0c 6...
0bf4aa26
XL
7LL | let _: AssertSync<Foo> = unimplemented!();
8 | ^^^^^^^^^^^^^^^ `*const Bar` cannot be shared between threads safely
2c00a5a8 9 |
0bf4aa26
XL
10 = help: within `Foo`, the trait `std::marker::Sync` is not implemented for `*const Bar`
11 = note: required because it appears within the type `Foo`
0bf4aa26
XL
12
13error[E0277]: `*const Foo` cannot be shared between threads safely
0731742a 14 --> $DIR/recursive-requirements.rs:16:12
0bf4aa26 15 |
e1599b0c 16LL | struct AssertSync<T: Sync>(PhantomData<T>);
ba9703b0 17 | ---- required by this bound in `AssertSync`
e1599b0c 18...
0bf4aa26
XL
19LL | let _: AssertSync<Foo> = unimplemented!();
20 | ^^^^^^^^^^^^^^^ `*const Foo` cannot be shared between threads safely
21 |
22 = help: within `Foo`, the trait `std::marker::Sync` is not implemented for `*const Foo`
2c00a5a8
XL
23 = note: required because it appears within the type `Bar`
24 = note: required because it appears within the type `std::marker::PhantomData<Bar>`
25 = note: required because it appears within the type `Foo`
26
0bf4aa26 27error: aborting due to 2 previous errors
2c00a5a8 28
0bf4aa26 29For more information about this error, try `rustc --explain E0277`.