18 lines
522 B
Plaintext
18 lines
522 B
Plaintext
error: borrow as raw pointer
|
|
--> tests/ui/borrow_and_ref_as_ptr.rs:9:7
|
|
|
|
|
LL | f(&val as *const _);
|
|
| ^^^^^^^^^^^^^^^^ help: try: `&raw const val`
|
|
|
|
|
= note: `-D clippy::borrow-as-ptr` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::borrow_as_ptr)]`
|
|
|
|
error: borrow as raw pointer
|
|
--> tests/ui/borrow_and_ref_as_ptr.rs:11:7
|
|
|
|
|
LL | f(&mut val as *mut i32);
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try: `&raw mut val`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|