rustc/tests/ui/attributes/issue-90873.rs
2023-08-02 10:33:26 +02:00

10 lines
314 B
Rust

#![u=||{static d=||1;}]
//~^ unexpected expression
//~| cannot find attribute `u` in this scope
//~| missing type for `static` item
#![a={impl std::ops::Neg for i8 {}}]
//~^ ERROR unexpected expression
//~| ERROR cannot find attribute `a` in this scope
//~| ERROR `main` function not found in crate `issue_90873`