about summary refs log tree commit diff
path: root/src/test/run-pass/expr-match-unique.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-match-unique.rs')
-rw-r--r--src/test/run-pass/expr-match-unique.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/expr-match-unique.rs b/src/test/run-pass/expr-match-unique.rs
index 57ccfe1d5e0..9641cacddc0 100644
--- a/src/test/run-pass/expr-match-unique.rs
+++ b/src/test/run-pass/expr-match-unique.rs
@@ -13,7 +13,7 @@
 
 // Tests for match as expressions resulting in boxed types
 fn test_box() {
-    let res = match true { true => { box 100 }, _ => panic!() };
+    let res: Box<_> = match true { true => { box 100 }, _ => panic!() };
     assert_eq!(*res, 100);
 }