rust/tests/ui/attributes
Matthias Krüger 5ea1a03cca
Rollup merge of #127118 - surechen:fix_126789, r=jieyouxu
Show `used attribute`'s kind for user when find it isn't applied to a `static` variable.

For example :
```rust
extern "C" {
    #[used] //~ ERROR attribute must be applied to a `static` variable
    static FOO: i32; // show the kind of this item to help user understand why the error is reported.
}
```

fixes #126789
2024-06-29 22:10:59 +02:00
..
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00