Files
rust/tests/ui/lowering/issue-96847.rs
T
2026-03-04 08:06:45 +08:00

15 lines
328 B
Rust

//@ check-fail
// Test that this doesn't abort during AST lowering. In #96847 it did abort
// because the attribute was being lowered twice.
#![feature(lang_items)]
fn main() {
for _ in [1,2,3] {
#![lang="foo"]
//~^ ERROR definition of an unknown lang item: `foo` [E0522]
println!("foo");
}
}