mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
8 lines
206 B
Rust
8 lines
206 B
Rust
|
#[cold] //~ ERROR attribute should be applied to a function
|
||
|
struct Foo; //~ NOTE not a function
|
||
|
|
||
|
fn main() {
|
||
|
#[cold] //~ ERROR attribute should be applied to a function
|
||
|
5; //~ NOTE not a function
|
||
|
}
|