mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
11 lines
292 B
Rust
11 lines
292 B
Rust
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() { }
|