]> git.proxmox.com Git - rustc.git/blame - tests/ui/issues/issue-21763.stderr
New upstream version 1.74.1+dfsg1
[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 |
1b1a35ee
XL
7 = help: within `(Rc<()>, Rc<()>)`, the trait `Send` is not implemented for `Rc<()>`
8 = note: required because it appears within the type `(Rc<()>, Rc<()>)`
f2b60f7d 9 = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send`
49aad941
FG
10note: required because it appears within the type `HashMap<Rc<()>, Rc<()>, RandomState>`
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
XL
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0277`.