]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/struct-filed-with-attr.fixed
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / parser / struct-filed-with-attr.fixed
1 // Issue: 100461, Try to give a helpful diagnostic even when the next struct field has an attribute.
2 // run-rustfix
3
4 struct Feelings {
5 owo: bool,
6 //~^ ERROR expected `,`, or `}`, found `#`
7 #[allow(unused)]
8 uwu: bool,
9 }
10
11 impl Feelings {
12 #[allow(unused)]
13 fn hmm(&self) -> bool {
14 self.owo
15 }
16 }
17
18 fn main() { }