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

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

11 lines
292 B
Rust
Raw Normal View History

2023-12-02 09:46:45 -06:00
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() { }