mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
9ec8888b91
actuall add files add better example and change pedantic to restriction
28 lines
837 B
Plaintext
28 lines
837 B
Plaintext
error: using a potentially dangerous silent `as` conversion
|
|
--> $DIR/as_conversions.rs:4:13
|
|
|
|
|
LL | let i = 0u32 as u64;
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::as-conversions` implied by `-D warnings`
|
|
= help: consider using a safe wrapper for this conversion
|
|
|
|
error: using a potentially dangerous silent `as` conversion
|
|
--> $DIR/as_conversions.rs:6: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
|
|
--> $DIR/as_conversions.rs:6: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
|
|
|