rust/tests/ui/parser/issues/issue-118530-ice.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
395 B
Rust
Raw Normal View History

2023-12-02 09:46:45 -06:00
fn bar() -> String {
#[cfg]
[1, 2, 3].iter() //~ ERROR expected `;`, found `#`
#[feature]
attr::fn bar() -> String { //~ ERROR expected identifier, found keyword `fn`
//~^ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `->`
//~| ERROR expected `;`, found `bar`
#[attr]
[1, 2, 3].iter().map().collect::<String>()
#[attr]
}()
}
fn main() { }