about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/author/if.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/author/if.rs')
-rw-r--r--src/tools/clippy/tests/ui/author/if.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/author/if.rs b/src/tools/clippy/tests/ui/author/if.rs
new file mode 100644
index 00000000000..2e9cb1466d0
--- /dev/null
+++ b/src/tools/clippy/tests/ui/author/if.rs
@@ -0,0 +1,10 @@
+#[allow(clippy::all)]
+
+fn main() {
+    #[clippy::author]
+    let _ = if true {
+        1 == 1;
+    } else {
+        2 == 2;
+    };
+}