]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-struct.stderr
Auto merge of #87489 - bdalrhm:rustdoc-line-num, r=CraftSpider
[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 |     bar(x);
5    |         ^ `Foo` cannot be sent between threads safely
6    |
7    = help: the trait `Send` is not implemented for `Foo`
8 note: required by a bound in `bar`
9   --> $DIR/no_send-struct.rs:11:11
10    |
11 LL | fn bar<T: Send>(_: T) {}
12    |           ^^^^ required by this bound in `bar`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.