]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/as_conversions.stderr
Rollup merge of #100076 - tspiteri:const_slice_split_at, r=oli-obk
[rust.git] / src / tools / clippy / tests / ui / as_conversions.stderr
1 error: using a potentially dangerous silent `as` conversion
2   --> $DIR/as_conversions.rs:15:13
3    |
4 LL |     let i = 0u32 as u64;
5    |             ^^^^^^^^^^^
6    |
7    = note: `-D clippy::as-conversions` implied by `-D warnings`
8    = help: consider using a safe wrapper for this conversion
9
10 error: using a potentially dangerous silent `as` conversion
11   --> $DIR/as_conversions.rs:17:13
12    |
13 LL |     let j = &i as *const u64 as *mut u64;
14    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider using a safe wrapper for this conversion
17
18 error: using a potentially dangerous silent `as` conversion
19   --> $DIR/as_conversions.rs:17:13
20    |
21 LL |     let j = &i as *const u64 as *mut u64;
22    |             ^^^^^^^^^^^^^^^^
23    |
24    = help: consider using a safe wrapper for this conversion
25
26 error: aborting due to 3 previous errors
27