summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-118530-ice.rs
blob: e758e5af4d9ec8ad4a01be92cc4cf5477bea48b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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() { }