blob: f409d4d9901a8d913ae5fe9b19c2e8fc2bf7d7d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error: expected `mut` or `const` keyword in raw pointer type
--> $DIR/bad-pointer-type.rs:1:11
|
LL | fn foo(_: *()) {
| ^
|
help: add `mut` or `const` here
|
LL | fn foo(_: *mut ()) {
| +++
LL | fn foo(_: *const ()) {
| +++++
error: aborting due to 1 previous error
|