]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no-send-res-ports.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / no-send-res-ports.stderr
1 error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
2   --> $DIR/no-send-res-ports.rs:35:5
3    |
4 LL |     thread::spawn(move|| {
5    |     ^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
6    |
7    = help: within `[closure@$DIR/no-send-res-ports.rs:35:19: 39:6 x:main::foo]`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
8    = note: required because it appears within the type `Port<()>`
9    = note: required because it appears within the type `main::foo`
10    = note: required because it appears within the type `[closure@$DIR/no-send-res-ports.rs:35:19: 39:6 x:main::foo]`
11    = note: required by `std::thread::spawn`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.