about summary refs log tree commit diff
path: root/tests/ui/parser/struct-filed-with-attr.rs
blob: f8eac6251e2c040e87f8f85b14f86e8c9433c863 (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() { }