diff --git a/src/test/ui/issue-29723.rs b/src/test/ui/issue-29723.rs index 9f36486e813..248e44dcc02 100644 --- a/src/test/ui/issue-29723.rs +++ b/src/test/ui/issue-29723.rs @@ -12,7 +12,7 @@ // test for https://github.com/rust-lang/rust/issues/29723 -fn foo() { +fn main() { let s = String::new(); let _s = match 0 { 0 if { drop(s); false } => String::from("oops"),