1error: attribute must be applied to a `static` variable 2 --> $DIR/used.rs:4:1 3 | 4LL | #[used] 5 | ^^^^^^^ 6 7error: attribute must be applied to a `static` variable 8 --> $DIR/used.rs:7:1 9 | 10LL | #[used] 11 | ^^^^^^^ 12 13error: attribute must be applied to a `static` variable 14 --> $DIR/used.rs:10:1 15 | 16LL | #[used] 17 | ^^^^^^^ 18 19error: attribute must be applied to a `static` variable 20 --> $DIR/used.rs:13:1 21 | 22LL | #[used] 23 | ^^^^^^^ 24 25error: aborting due to 4 previous errors 26 27