blob: 38ae446166a11ddbbf67c99b47cd44fea937b4fa [file] [log] [blame] [edit]
// 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() { }