2019-11-15 22:27:07 +03:00
|
|
|
error: using a potentially dangerous silent `as` conversion
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/as_conversions.rs:10:13
|
2019-11-15 22:27:07 +03:00
|
|
|
|
|
|
|
|
LL | let i = 0u32 as u64;
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using a safe wrapper for this conversion
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::as-conversions` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::as_conversions)]`
|
2019-11-15 22:27:07 +03:00
|
|
|
|
|
|
|
error: using a potentially dangerous silent `as` conversion
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/as_conversions.rs:12:13
|
2019-11-15 22:27:07 +03: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
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/as_conversions.rs:12:13
|
2019-11-15 22:27:07 +03: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
|
|
|
|
|