2019-11-15 19:27:07 +00:00
|
|
|
error: using a potentially dangerous silent `as` conversion
|
2023-06-08 18:04:35 +00:00
|
|
|
--> $DIR/as_conversions.rs:11:13
|
2019-11-15 19:27:07 +00:00
|
|
|
|
|
|
|
|
LL | let i = 0u32 as u64;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using a safe wrapper for this conversion
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::as-conversions` implied by `-D warnings`
|
2019-11-15 19:27:07 +00:00
|
|
|
|
|
|
|
error: using a potentially dangerous silent `as` conversion
|
2023-06-08 18:04:35 +00:00
|
|
|
--> $DIR/as_conversions.rs:13:13
|
2019-11-15 19:27:07 +00:00
|
|
|
|
|
|
|
|
LL | let j = &i as *const u64 as *mut u64;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using a safe wrapper for this conversion
|
|
|
|
|
|
|
|
error: using a potentially dangerous silent `as` conversion
|
2023-06-08 18:04:35 +00:00
|
|
|
--> $DIR/as_conversions.rs:13:13
|
2019-11-15 19:27:07 +00:00
|
|
|
|
|
|
|
|
LL | let j = &i as *const u64 as *mut u64;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using a safe wrapper for this conversion
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|