rust/tests/ui/lowering/issue-96847.rs

15 lines
290 B
Rust
Raw Normal View History

// run-pass
// Test that this doesn't abort during AST lowering. In #96847 it did abort
// because the attribute was being lowered twice.
#![feature(stmt_expr_attributes)]
#![feature(lang_items)]
fn main() {
for _ in [1,2,3] {
#![lang="foo"]
println!("foo");
}
}