blob: 643520ac0f5d97c21e73c19f2508f76e61be6398 [file] [log] [blame]
//@ no-rustfix
#![warn(clippy::collapsible_if)]
fn issue13365() {
// in the following examples, we won't lint because of the comments,
// so the the `expect` will be unfulfilled
if true {
// don't collapsible because of this comment
#[expect(clippy::collapsible_if)]
if true {}
}
//~^^^ ERROR: this lint expectation is unfulfilled
if true {
#[expect(clippy::collapsible_if)]
// don't collapsible because of this comment
if true {}
}
//~^^^^ ERROR: this lint expectation is unfulfilled
}