]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-struct.stderr
Sync rustc_codegen_cranelift 'ddd4ce25535cf71203ba3700896131ce55fde795'
[rust.git] / src / test / ui / no_send-struct.stderr
1 error[E0277]: `Foo` cannot be sent between threads safely
2   --> $DIR/no_send-struct.rs:15:9
3    |
4 LL | fn bar<T: Send>(_: T) {}
5    |           ---- required by this bound in `bar`
6 ...
7 LL |     bar(x);
8    |         ^ `Foo` cannot be sent between threads safely
9    |
10    = help: the trait `Send` is not implemented for `Foo`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.