rust/src/test/ui/generator/yield-in-static.stderr

13 lines
380 B
Plaintext
Raw Normal View History

error[E0601]: main function not found in crate yield_in_static
2017-08-09 18:37:56 -05:00
error[E0627]: yield statement outside of generator literal
--> $DIR/yield-in-static.rs:13:18
|
2018-02-22 18:42:32 -06:00
LL | static B: u8 = { yield 3u8; 3u8};
2017-08-09 18:37:56 -05:00
| ^^^^^^^^^
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
Some errors occurred: E0601, E0627.
For more information about an error, try `rustc --explain E0601`.