fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
689 B21 linesraw
1error[E0277]: `T` cannot be sent between threads safely
2  --> $DIR/bad-method-typaram-kind.rs:2:13
3   |
4LL |     1.bar::<T>();
5   |       ---   ^ `T` cannot be sent between threads safely
6   |       |
7   |       required by a bound introduced by this call
8   |
9note: required by a bound in `Bar::bar`
10  --> $DIR/bad-method-typaram-kind.rs:6:14
11   |
12LL |     fn bar<T:Send>(&self);
13   |              ^^^^ required by this bound in `Bar::bar`
14help: consider further restricting this bound
15   |
16LL | fn foo<T:'static + std::marker::Send>() {
17   |                  +++++++++++++++++++
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.