about summary refs log tree commit diff
path: root/tests/ui/coroutine/postfix-yield-after-cast.stderr
blob: a4de064fdf8793d4a6a7f36ef258967fced78706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: cast cannot be followed by `.yield`
  --> $DIR/postfix-yield-after-cast.rs:7:9
   |
LL |         0 as u8.yield
   |         ^^^^^^^
   |
help: try surrounding the expression in parentheses
   |
LL |         (0 as u8).yield
   |         +       +

error: aborting due to 1 previous error