fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
862 B28 linesraw
1error: trivial numeric cast: `i32` as `i32`
2  --> $DIR/trivial-casts.rs:4:22
3   |
4LL |     let lugubrious = 12i32 as i32;
5   |                      ^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/trivial-casts.rs:1:24
9   |
10LL | #![deny(trivial_casts, trivial_numeric_casts)]
11   |                        ^^^^^^^^^^^^^^^^^^^^^
12   = help: cast can be replaced by coercion; this might require a temporary variable
13
14error: trivial cast: `&u32` as `*const u32`
15  --> $DIR/trivial-casts.rs:7:13
16   |
17LL |     let _ = haunted as *const u32;
18   |             ^^^^^^^^^^^^^^^^^^^^^
19   |
20note: lint level defined here
21  --> $DIR/trivial-casts.rs:1:9
22   |
23LL | #![deny(trivial_casts, trivial_numeric_casts)]
24   |         ^^^^^^^^^^^^^
25   = help: cast can be replaced by coercion; this might require a temporary variable
26
27error: aborting due to 2 previous errors
28