summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/as_conversions.stderr
blob: d11b56171b07211b6bd6f6a4bda0d6947eb32ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error: using a potentially dangerous silent `as` conversion
  --> $DIR/as_conversions.rs:15: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:17: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:17: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