mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
28 lines
928 B
Text
28 lines
928 B
Text
error: using a potentially dangerous silent `as` conversion
|
|
--> tests/ui/as_conversions.rs:10:13
|
|
|
|
|
LL | let i = 0u32 as u64;
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= help: consider using a safe wrapper for this conversion
|
|
= note: `-D clippy::as-conversions` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::as_conversions)]`
|
|
|
|
error: using a potentially dangerous silent `as` conversion
|
|
--> tests/ui/as_conversions.rs:12:13
|
|
|
|
|
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
|
|
--> tests/ui/as_conversions.rs:12:13
|
|
|
|
|
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
|
|
|