about summary refs log tree commit diff
path: root/tests/ui/coroutine/yield-in-const.stderr
blob: f02729412ccd5c27bb2229797235ac6dbd0f0cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
  --> $DIR/yield-in-const.rs:3:17
   |
LL | const A: u8 = { yield 3u8; 3u8};
   |                 ^^^^^^^^^

error[E0627]: yield expression outside of coroutine literal
  --> $DIR/yield-in-const.rs:3:17
   |
LL | const A: u8 = { yield 3u8; 3u8};
   |                 ^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0627`.