blob: 83efdce13f7e73a1e5ce495acdfa1aeed0eef168 (
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
28
29
30
31
32
33
34
35
36
|
error: transmute used without annotations
--> tests/ui/missing_transmute_annotations_unfixable.rs:12:29
|
LL | yy = unsafe { std::mem::transmute(std::ptr::read(&x())) };
| ^^^^^^^^^
|
= help: consider giving the source and destination types a name, and adding missing type annotations
= note: `-D clippy::missing-transmute-annotations` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::missing_transmute_annotations)]`
error: transmute used without annotations
--> tests/ui/missing_transmute_annotations_unfixable.rs:16:29
|
LL | zz = unsafe { std::mem::transmute(std::ptr::read(&x())) };
| ^^^^^^^^^
|
= help: consider giving the origin type a name, and adding missing type annotations
error: transmute used without annotations
--> tests/ui/missing_transmute_annotations_unfixable.rs:19:29
|
LL | yy = unsafe { std::mem::transmute(zz) };
| ^^^^^^^^^
|
= help: consider giving the destination type a name, and adding missing type annotations
error: transmute used without annotations
--> tests/ui/missing_transmute_annotations_unfixable.rs:27:28
|
LL | b = unsafe { std::mem::transmute(a()) };
| ^^^^^^^^^
|
= help: consider giving `a()`'s type a name, and adding missing type annotations
error: aborting due to 4 previous errors
|