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