summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lowering/issue-96847.rs
blob: 2aa34c8b33528c68a231bd77faae2f640e6a1405 (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");
    }
}