summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-118531-ice.rs
blob: 24794f06052c92f7e4e7dfb2cb30d18377dfd12d (plain)
1
2
3
4
5
6
7
8
9
10
fn bar() -> String {
    #[cfg(feature = )]
    [1, 2, 3].iter().map().collect::<String>() //~ ERROR expected `;`, found `#`

    #[attr] //~ ERROR attributes on expressions are experimental [E0658]
    //~^ ERROR cannot find attribute `attr` in this scope
    String::new()
}

fn main() { }