rust/src/test/ui/issues/issue-54044.rs

8 lines
206 B
Rust
Raw Normal View History

2020-06-14 04:47:42 +00:00
#[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
}