blob: 49dea154970e50ab216792d52a157dfd24e2f960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
### What it does
Checks for transmutes between a type `T` and `*T`.
### Why is this bad?
It's easy to mistakenly transmute between a type and a
pointer to that type.
### Example
```
core::intrinsics::transmute(t) // where the result type is the same as
// `*t` or `&t`'s
```
|