rust/tests/ui/parser/double-pointer.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

16 lines
382 B
Plaintext

error: expected `mut` or `const` keyword in raw pointer type
--> $DIR/double-pointer.rs:4:15
|
LL | let dptr: **const i32 = &ptr;
| ^
|
help: add `mut` or `const` here
|
LL | let dptr: *mut *const i32 = &ptr;
| +++
LL | let dptr: *const *const i32 = &ptr;
| +++++
error: aborting due to 1 previous error