]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-64130-1-sync.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / async-await / issue-64130-1-sync.stderr
CommitLineData
60c5eb7d 1error: future cannot be shared between threads safely
3c0e092e 2 --> $DIR/issue-64130-1-sync.rs:21:13
60c5eb7d 3 |
60c5eb7d 4LL | is_sync(bar());
3c0e092e 5 | ^^^^^ future returned by `bar` is not `Sync`
60c5eb7d 6 |
3c0e092e 7 = help: within `impl Future<Output = ()>`, the trait `Sync` is not implemented for `Foo`
60c5eb7d 8note: future is not `Sync` as this value is used across an await
a2a8927a 9 --> $DIR/issue-64130-1-sync.rs:15:10
60c5eb7d
XL
10 |
11LL | let x = Foo;
ba9703b0 12 | - has type `Foo` which is not `Sync`
60c5eb7d 13LL | baz().await;
a2a8927a 14 | ^^^^^^ await occurs here, with `x` maybe used later
60c5eb7d
XL
15LL | }
16 | - `x` is later dropped here
94222f64
XL
17note: required by a bound in `is_sync`
18 --> $DIR/issue-64130-1-sync.rs:11:15
19 |
20LL | fn is_sync<T: Sync>(t: T) { }
21 | ^^^^ required by this bound in `is_sync`
60c5eb7d
XL
22
23error: aborting due to previous error
24