18 lines
553 B
Plaintext
18 lines
553 B
Plaintext
error: using inferred pointer cast
|
|
--> tests/ui/as_pointer_underscore.rs:8:11
|
|
|
|
|
LL | &s as *const _ as usize
|
|
| ^^^^^^^^ help: use explicit type: `*const &S`
|
|
|
|
|
= note: `-D clippy::as-pointer-underscore` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::as_pointer_underscore)]`
|
|
|
|
error: using inferred pointer cast
|
|
--> tests/ui/as_pointer_underscore.rs:13:10
|
|
|
|
|
LL | s as *mut _ as usize
|
|
| ^^^^^^ help: use explicit type: `*mut S`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|