Files
rust/tests/ui/borrow_and_ref_as_ptr.stderr
Guillaume Gomez f666fd6417 Update UI tests
2025-02-15 13:38:16 +01:00

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