fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB18 linesraw
1error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
2  --> $DIR/issue-21763.rs:9:5
3   |
4LL | fn foo<T: Send>() {}
5   |    ---    ---- required by this bound in `foo`
6...
7LL |     foo::<HashMap<Rc<()>, Rc<()>>>();
8   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
9   |
10   = help: within `(std::rc::Rc<()>, std::rc::Rc<()>)`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
11   = note: required because it appears within the type `(std::rc::Rc<()>, std::rc::Rc<()>)`
12   = note: required because of the requirements on the impl of `std::marker::Send` for `hashbrown::raw::RawTable<(std::rc::Rc<()>, std::rc::Rc<()>)>`
13   = note: required because it appears within the type `hashbrown::map::HashMap<std::rc::Rc<()>, std::rc::Rc<()>, std::collections::hash_map::RandomState>`
14   = note: required because it appears within the type `std::collections::HashMap<std::rc::Rc<()>, std::rc::Rc<()>>`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.