]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-generators.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-generators.stderr
1 error[E0658]: yield syntax is experimental
2   --> $DIR/feature-gate-generators.rs:2:5
3    |
4 LL |     yield true;
5    |     ^^^^^^^^^^
6    |
7    = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
8    = help: add `#![feature(generators)]` to the crate attributes to enable
9
10 error[E0658]: yield syntax is experimental
11   --> $DIR/feature-gate-generators.rs:8:5
12    |
13 LL |     yield;
14    |     ^^^^^
15    |
16    = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
17    = help: add `#![feature(generators)]` to the crate attributes to enable
18
19 error[E0658]: yield syntax is experimental
20   --> $DIR/feature-gate-generators.rs:9:5
21    |
22 LL |     yield 0;
23    |     ^^^^^^^
24    |
25    = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
26    = help: add `#![feature(generators)]` to the crate attributes to enable
27
28 error[E0627]: yield expression outside of generator literal
29   --> $DIR/feature-gate-generators.rs:2:5
30    |
31 LL |     yield true;
32    |     ^^^^^^^^^^
33
34 error: aborting due to 4 previous errors
35
36 Some errors have detailed explanations: E0627, E0658.
37 For more information about an error, try `rustc --explain E0627`.