1
Fork 0

adjust how closure/generator types and rvalues are printed

This commit is contained in:
Ralf Jung 2023-09-09 08:36:50 +02:00
parent e4a361a48a
commit c4ec12f4b7
191 changed files with 477 additions and 477 deletions

View file

@ -4,7 +4,7 @@ error[E0277]: `Rc<()>` cannot be sent between threads safely
LL | thread::spawn(move|| {
| ------------- ^-----
| | |
| _____|_____________within this `[closure@$DIR/no-send-res-ports.rs:25:19: 25:25]`
| _____|_____________within this `{closure@$DIR/no-send-res-ports.rs:25:19: 25:25}`
| | |
| | required by a bound introduced by this call
LL | |
@ -13,7 +13,7 @@ LL | | println!("{:?}", y);
LL | | });
| |_____^ `Rc<()>` cannot be sent between threads safely
|
= help: within `[closure@$DIR/no-send-res-ports.rs:25:19: 25:25]`, the trait `Send` is not implemented for `Rc<()>`
= help: within `{closure@$DIR/no-send-res-ports.rs:25:19: 25:25}`, the trait `Send` is not implemented for `Rc<()>`
note: required because it appears within the type `Port<()>`
--> $DIR/no-send-res-ports.rs:5:8
|