mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
341 B
Rust
18 lines
341 B
Rust
// 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() { }
|