mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 11:13:43 +00:00
14 lines
397 B
Rust
14 lines
397 B
Rust
// Verify that we do not ICE when failing to parse a statement in `cfg_eval`.
|
|
|
|
#![feature(cfg_eval)]
|
|
#![feature(stmt_expr_attributes)]
|
|
|
|
#[cfg_eval]
|
|
fn main() {
|
|
#[cfg_eval]
|
|
let _ = #[cfg(FALSE)] 0;
|
|
//~^ ERROR removing an expression is not supported in this position
|
|
//~| ERROR expected expression, found `;`
|
|
//~| ERROR removing an expression is not supported in this position
|
|
}
|