]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cast_char.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / cast_char.rs
index cd8ade5e51a1b748597ea000d83d6c17719e1a49..8c319af9c96e7271b856457ac205d7dd40ed3886 100644 (file)
@@ -1,20 +1,10 @@
-// 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.
-
 #![deny(overflowing_literals)]
 
 fn main() {
     const XYZ: char = 0x1F888 as char;
-    //~^ ERROR only u8 can be casted into char
+    //~^ ERROR only u8 can be cast into char
     const XY: char = 129160 as char;
-    //~^ ERROR only u8 can be casted into char
+    //~^ ERROR only u8 can be cast into char
     const ZYX: char = '\u{01F888}';
     println!("{}", XYZ);
 }