fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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