File: unsoundness_issue_106.stderr

package info (click to toggle)
rust-async-stream 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: makefile: 2
file content (36 lines) | stat: -rw-r--r-- 1,396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
error[E0767]: use of unreachable label `'__async_stream_private_check_scope`
  --> tests/ui/unsoundness_issue_106.rs:14:10
   |
14 |       pin!(stream! {
   |  __________^
15 | |         let yield_42 = asynk!(yield 42_usize);
16 | |         let s = stream! {
17 | |             yield Box::new(12345);
...  |
26 | |         }
27 | |     })
   | |     ^
   | |     |
   | |_____unreachable label `'__async_stream_private_check_scope`
   |       unreachable label defined here
   |
   = note: labels are unreachable through functions, closures, async blocks and modules
   = note: this error originates in the macro `$crate::__private::stream_inner` which comes from the expansion of the macro `stream` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0267]: `break` inside `async` block
  --> tests/ui/unsoundness_issue_106.rs:14:10
   |
8  |           async { $e }
   |           ----- enclosing `async` block
...
14 |       pin!(stream! {
   |  __________^
15 | |         let yield_42 = asynk!(yield 42_usize);
16 | |         let s = stream! {
17 | |             yield Box::new(12345);
...  |
26 | |         }
27 | |     })
   | |_____^ cannot `break` inside `async` block
   |
   = note: this error originates in the macro `$crate::__private::stream_inner` which comes from the expansion of the macro `stream` (in Nightly builds, run with -Z macro-backtrace for more info)