summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/identity_op.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/identity_op.fixed')
-rw-r--r--src/tools/clippy/tests/ui/identity_op.fixed6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/identity_op.fixed b/src/tools/clippy/tests/ui/identity_op.fixed
index e7b9a78c5..cac69ef42 100644
--- a/src/tools/clippy/tests/ui/identity_op.fixed
+++ b/src/tools/clippy/tests/ui/identity_op.fixed
@@ -65,7 +65,7 @@ fn main() {
42;
1;
42;
- &x;
+ x;
x;
let mut a = A(String::new());
@@ -112,6 +112,10 @@ fn main() {
2 * { a };
(({ a } + 4));
1;
+
+ // Issue #9904
+ let x = 0i32;
+ let _: i32 = x;
}
pub fn decide(a: bool, b: bool) -> u32 {