X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fparser%2Fmatch-arm-without-braces.rs;h=bba38fd0fa4c915fd9b3c3548cbfa4dbfb0b6fcc;hb=b13eb61a2cdfac1e094c2a4d608086f40cea5e01;hp=55a887427696ded8d7a027f38f6c2ee288fa9f10;hpb=13cc27b4450d99a2e85a656de3936af65332a716;p=rust.git diff --git a/src/test/ui/parser/match-arm-without-braces.rs b/src/test/ui/parser/match-arm-without-braces.rs index 55a88742769..bba38fd0fa4 100644 --- a/src/test/ui/parser/match-arm-without-braces.rs +++ b/src/test/ui/parser/match-arm-without-braces.rs @@ -45,9 +45,9 @@ fn main() { 15; } match S::get(16) { - Some(Val::Foo) => 17 - _ => 18, //~ ERROR expected one of - } + Some(Val::Foo) => 17 //~ ERROR expected `,` following `match` arm + _ => 18, + }; match S::get(19) { Some(Val::Foo) => 20; //~ ERROR `match` arm body without braces