mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
16 lines
371 B
Rust
16 lines
371 B
Rust
// revisions: e2024 none
|
|
//[e2024] compile-flags: --edition 2024 -Zunstable-options
|
|
|
|
fn main() {
|
|
gen {};
|
|
//[none]~^ ERROR: cannot find struct, variant or union type `gen`
|
|
//[e2024]~^^ ERROR: gen blocks are experimental
|
|
//[e2024]~| ERROR: type annotations needed
|
|
}
|
|
|
|
#[cfg(FALSE)]
|
|
fn foo() {
|
|
gen {};
|
|
//[e2024]~^ ERROR: gen blocks are experimental
|
|
}
|