summary refs log tree commit diff
path: root/src/test/ui/bad/bad-method-typaram-kind.stderr
blob: 9732363221286a0e79bb4b70ef1f5875730a3f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: `T` cannot be sent between threads safely
  --> $DIR/bad-method-typaram-kind.rs:2:7
   |
LL |     1.bar::<T>();
   |       ^^^ `T` cannot be sent between threads safely
   |
   = help: the trait `std::marker::Send` is not implemented for `T`
help: consider further restricting this bound with `+ std::marker::Send`
  --> $DIR/bad-method-typaram-kind.rs:1:10
   |
LL | fn foo<T:'static>() {
   |          ^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.