]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/raw/raw-literal-self.rs
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / parser / raw / raw-literal-self.rs
index 17496d767b6226b95b56c0590d0f7f2e8bc82cf7..123a11b6f8543174a54aef3020fa584800182fec 100644 (file)
@@ -1,15 +1,4 @@
-// Copyright 2018 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 self_test(r#self: u32) {
-    //~^ ERROR `r#self` is not currently supported.
+fn main() {
+    let r#self;
+    //~^ ERROR `self` cannot be a raw identifier
 }