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

8 lines
206 B
Rust
Raw Normal View History

2020-06-13 23:47:42 -05: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
}