]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cast_char.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / cast_char.stderr
index e42a38dace9d21aa48af4d79c02c324e35ba1e3a..600d7e61a0986018af5515c29684555ca361efc6 100644 (file)
@@ -1,19 +1,19 @@
-error: only u8 can be casted into char
+error: only u8 can be cast into char
   --> $DIR/cast_char.rs:14:23
    |
-14 |     const XYZ: char = 0x1F888 as char;
+LL |     const XYZ: char = 0x1F888 as char;
    |                       ^^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`
    |
 note: lint level defined here
   --> $DIR/cast_char.rs:11:9
    |
-11 | #![deny(overflowing_literals)]
+LL | #![deny(overflowing_literals)]
    |         ^^^^^^^^^^^^^^^^^^^^
 
-error: only u8 can be casted into char
+error: only u8 can be cast into char
   --> $DIR/cast_char.rs:16:22
    |
-16 |     const XY: char = 129160 as char;
+LL |     const XY: char = 129160 as char;
    |                      ^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`
 
 error: aborting due to 2 previous errors