diff --git a/src/test/compile-fail/E0009.rs b/src/test/compile-fail/E0009.rs index 4ce3b72e449df..767fc0cc5dc07 100644 --- a/src/test/compile-fail/E0009.rs +++ b/src/test/compile-fail/E0009.rs @@ -12,7 +12,7 @@ fn main() { struct X { x: (), } let x = Some((X { x: () }, X { x: () })); match x { - Some((y, ref z)) => {}, + Some((y, ref z)) => {}, //~^ ERROR E0009 //~| NOTE by-move pattern here //~| NOTE both by-ref and by-move used