about summary refs log tree commit diff
path: root/tests/ui/typeck/typeck-default-trait-impl-negation-send.stderr
blob: 761277775f39ae39cfcc3d4e836a60865a274f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0277]: `MyNotSendable` cannot be sent between threads safely
  --> $DIR/typeck-default-trait-impl-negation-send.rs:19:15
   |
LL |     is_send::<MyNotSendable>();
   |               ^^^^^^^^^^^^^ `MyNotSendable` cannot be sent between threads safely
   |
help: the trait `Send` is not implemented for `MyNotSendable`
  --> $DIR/typeck-default-trait-impl-negation-send.rs:9:1
   |
LL | struct MyNotSendable {
   | ^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `is_send`
  --> $DIR/typeck-default-trait-impl-negation-send.rs:15:15
   |
LL | fn is_send<T: Send>() {}
   |               ^^^^ required by this bound in `is_send`

error: aborting due to 1 previous error

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