about summary refs log tree commit diff
path: root/tests/ui/lowering/issue-96847.rs
blob: 9408f6b9b4abc79e3a7a4fd452c4cab9497629c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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");
    }
}