]> git.lizzy.rs Git - rust.git/blob - tests/ui/lowering/issue-96847.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / lowering / issue-96847.rs
1 // run-pass
2
3 // Test that this doesn't abort during AST lowering. In #96847 it did abort
4 // because the attribute was being lowered twice.
5
6 #![feature(stmt_expr_attributes)]
7 #![feature(lang_items)]
8
9 fn main() {
10     for _ in [1,2,3] {
11         #![lang="foo"]
12         println!("foo");
13     }
14 }