rust/tests/ui/generator/issue-91477.rs

8 lines
95 B
Rust
Raw Normal View History

#![feature(generators)]
fn foo() -> impl Sized {
yield 1; //~ ERROR E0627
}
fn main() {}