]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-filed-with-attr.rs
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[rust.git] / src / test / ui / parser / struct-filed-with-attr.rs
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() { }