blob: 9408f6b9b4abc79e3a7a4fd452c4cab9497629c8 [file] [log] [blame] [edit]
//@ 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");
}
}