Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coroutine
/
postfix-yield-after-cast.rs
blob: 472efb9f5138b49a37d5dad58f873f1b7ff64562 [
file
] [
log
] [
blame
]
// Regression test for <https://github.com/rust-lang/rust/issues/144527>.
#![
feature
(
yield_expr
,
coroutines
)]
fn
main
()
{
#[
coroutine
]
||
{
0
as
u8
.
yield
//~^ ERROR cast cannot be followed by `.yield`
};
}