diff --git a/src/test/compile-fail/moves-based-on-type-block-bad.rs b/src/test/compile-fail/moves-based-on-type-block-bad.rs index ea6afcd62141..deaff3c35211 100644 --- a/src/test/compile-fail/moves-based-on-type-block-bad.rs +++ b/src/test/compile-fail/moves-based-on-type-block-bad.rs @@ -34,7 +34,7 @@ fn main() { match hellothere.x { //~ ERROR cannot move out //~| cannot move out of borrowed content box E::Foo(_) => {} - box E::Bar(x) => println!("{}", x.to_string()), + box E::Bar(x) => println!("{}", x.to_string()), //~^ NOTE to prevent move box E::Baz => {} }