mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
15 lines
291 B
Rust
15 lines
291 B
Rust
//@ 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");
|
|
}
|
|
}
|