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
478 B13 linesraw
1error[E0277]: `T` cannot be sent between threads safely
2  --> $DIR/bad-method-typaram-kind.rs:2:7
3   |
4LL | fn foo<T:'static>() {
5   |        -- help: consider further restricting this bound: `T: std::marker::Send +`
6LL |     1.bar::<T>();
7   |       ^^^ `T` cannot be sent between threads safely
8   |
9   = help: the trait `std::marker::Send` is not implemented for `T`
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0277`.