Skip to content

Commit 8fefa65

Browse files
committed
Add regression test for lint expectations with expansion and derives
1 parent 700cb19 commit 8fefa65

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This test makes sure that expended items with derives don't interfear with lint expectations.
2+
//
3+
// See <https://github.com/rust-lang/rust/issues/153036> for some context.
4+
5+
//@ check-pass
6+
7+
#[derive(Clone, Debug)]
8+
#[expect(unused)]
9+
pub struct LoggingArgs {
10+
#[cfg(false)]
11+
x: i32,
12+
y: i32,
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)