]> git.proxmox.com Git - rustc.git/blob - tests/ui/lowering/issue-96847.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }