about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-118530-ice.rs
blob: 8930eb86c6b24b3ea238677dc77946745ee0e8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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`
    //~| ERROR `->` is not valid syntax for field accesses and method calls
    #[attr]
    [1, 2, 3].iter().map().collect::<String>()
    #[attr]

}()
}

fn main() { }