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