fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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