]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/brace-after-qualified-path-in-match.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / brace-after-qualified-path-in-match.rs
index ff434d87e1fb2c141955f5f363ad7d4837a56974..f41520861627ab84c9558e001c53b0cbc64ec768 100644 (file)
@@ -1,17 +1,5 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// compile-flags: -Z parse-only
-
-fn foo() {
-    match x {
+fn main() {
+    match 10 {
         <T as Trait>::Type{key: value} => (),
         //~^ ERROR unexpected `{` after qualified path
         _ => (),