]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/struct-filed-with-attr.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / 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() { }