blob: a799ec8ca2ea5bc3cb21caebd199327319b8c405 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | // Issue: 100461, Try to give a helpful diagnostic even when the next struct field has an attribute.
// run-rustfix
struct Feelings {
    owo: bool,
    //~^ ERROR expected `,`, or `}`, found `#`
    #[allow(unused)]
    uwu: bool,
}
impl Feelings {
    #[allow(unused)]
    fn hmm(&self) -> bool {
        self.owo
    }
}
fn main() { }
 |