29 lines
866 B
Plaintext
29 lines
866 B
Plaintext
|
error: trivial numeric cast: `i32` as `i32`
|
||
|
--> $DIR/trivial-casts.rs:14:22
|
||
|
|
|
||
|
LL | let lugubrious = 12i32 as i32;
|
||
|
| ^^^^^^^^^^^^
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/trivial-casts.rs:11:24
|
||
|
|
|
||
|
LL | #![deny(trivial_casts, trivial_numeric_casts)]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^
|
||
|
= help: cast can be replaced by coercion; this might require a temporary variable
|
||
|
|
||
|
error: trivial cast: `&u32` as `*const u32`
|
||
|
--> $DIR/trivial-casts.rs:17:13
|
||
|
|
|
||
|
LL | let _ = haunted as *const u32;
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/trivial-casts.rs:11:9
|
||
|
|
|
||
|
LL | #![deny(trivial_casts, trivial_numeric_casts)]
|
||
|
| ^^^^^^^^^^^^^
|
||
|
= help: cast can be replaced by coercion; this might require a temporary variable
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|