]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-generators.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-generators.rs
1 fn main() {
2     yield true; //~ ERROR yield syntax is experimental
3                 //~^ ERROR yield expression outside of generator literal
4 }
5
6 #[cfg(FALSE)]
7 fn foo() {
8     yield; //~ ERROR yield syntax is experimental
9     yield 0; //~ ERROR yield syntax is experimental
10 }