]> git.proxmox.com Git - rustc.git/blame - tests/ui/issues/issue-21763.stderr
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui / issues / issue-21763.stderr
CommitLineData
1b1a35ee 1error[E0277]: `Rc<()>` cannot be sent between threads safely
49aad941 2 --> $DIR/issue-21763.rs:11:11
8faf50e0
XL
3 |
4LL | foo::<HashMap<Rc<()>, Rc<()>>>();
f2b60f7d 5 | ^^^^^^^^^^^^^^^^^^^^^^^ `Rc<()>` cannot be sent between threads safely
8faf50e0 6 |
c0240ec0 7 = help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>`, which is required by `HashMap<Rc<()>, Rc<()>>: Send`
1b1a35ee 8 = note: required because it appears within the type `(Rc<()>, Rc<()>)`
f2b60f7d 9 = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send`
4b012472 10note: required because it appears within the type `hashbrown::map::HashMap<Rc<()>, Rc<()>, RandomState>`
49aad941 11 --> $HASHBROWN_SRC_LOCATION
49aad941
FG
12note: required because it appears within the type `HashMap<Rc<()>, Rc<()>>`
13 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
94222f64 14note: required by a bound in `foo`
49aad941 15 --> $DIR/issue-21763.rs:8:11
94222f64
XL
16 |
17LL | fn foo<T: Send>() {}
18 | ^^^^ required by this bound in `foo`
8faf50e0 19
4b012472 20error: aborting due to 1 previous error
8faf50e0
XL
21
22For more information about this error, try `rustc --explain E0277`.