diff --git a/src/test/ui/issues/issue-51345.rs b/src/test/ui/issues/issue-51345.rs index 15571e8bf5b28..8fe9385e6cd9e 100644 --- a/src/test/ui/issues/issue-51345.rs +++ b/src/test/ui/issues/issue-51345.rs @@ -2,7 +2,7 @@ #![allow(unreachable_code)] fn main() { - let mut v = Vec::new(); + let mut v: Vec<()> = Vec::new(); loop { v.push(break) } }