| error: attribute should be applied to a function or static |
| LL | type InvalidTy = (); |
| | -------------------- not a function definition or static |
| error: attribute should be applied to a function or static |
| LL | mod invalid_module {} |
| | --------------------- not a function definition or static |
| error: attribute should be applied to a function or static |
| | --------- not a function definition or static |
| error: attribute should be applied to a function or static |
| LL | | #[linkage = "weak"] |
| LL | | fn valid(&self) {} |
| | |_- not a function definition or static |
| error: attribute should be applied to a function or static |
| | |_____- not a function definition or static |
| error: attribute should be applied to a function or static |
| --> $DIR/linkage.rs:39:13 |
| LL | let _ = #[linkage = "weak"] |
| | ------ not a function definition or static |
| error: aborting due to 6 previous errors |