1 error[E0739]: attribute should be applied to a function definition
2 --> $DIR/only-for-fns.rs:1:1
7 | --------- not a function definition
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0739`.