fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
447 B14 linesraw
1error[E0277]: `Foo` cannot be shared between threads safely
2  --> $DIR/no_share-struct.rs:12:9
3   |
4LL | fn bar<T: Sync>(_: T) {}
5   |    ---    ---- required by this bound in `bar`
6...
7LL |     bar(x);
8   |         ^ `Foo` cannot be shared between threads safely
9   |
10   = help: the trait `std::marker::Sync` is not implemented for `Foo`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0277`.