We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 700cb19 commit 8fefa65Copy full SHA for 8fefa65
1 file changed
tests/ui/lint/rfc-2383-lint-reason/derive-expect-issue-150553-4.rs
@@ -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