about summary refs log tree commit diff
path: root/tests/ui/parser/attribute/properly-recover-from-trailing-outer-attribute-in-body-1.rs
blob: a7412f51782fb6607f711101552554820b25bff2 (plain)
1
2
3
4
5
6
7
8
9
// Issue #118164: recovery path leaving unemitted error behind
fn bar() -> String {
    #[cfg(feature = )]
    [1, 2, 3].iter().map().collect::<String>() //~ ERROR expected `;`, found `#`
    #[attr] //~ ERROR expected statement after outer attribute
}
fn main() {
    let _ = bar();
}