// Regression test for . #![feature(yield_expr, coroutines)] fn main() { #[coroutine] || { 0 as u8.yield //~^ ERROR cast cannot be followed by `.yield` }; }