fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error: trivial numeric cast: `i32` as `i32` 2 --> $DIR/trivial-casts.rs:4:22 3 | 4LL | let lugubrious = 12i32 as i32; 5 | ^^^^^^^^^^^^ 6 | 7note: the lint level is 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: the lint level is 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