]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | error: expected `mut` or `const` keyword in raw pointer type |
0731742a | 2 | --> $DIR/bad-pointer-type.rs:1:11 |
0bf4aa26 XL |
3 | | |
4 | LL | fn foo(_: *()) { | |
2b03887a | 5 | | ^ |
0731742a | 6 | | |
2b03887a FG |
7 | help: add `mut` or `const` here |
8 | | | |
9 | LL | fn foo(_: *const ()) { | |
10 | | +++++ | |
11 | LL | fn foo(_: *mut ()) { | |
12 | | +++ | |
0bf4aa26 XL |
13 | |
14 | error: aborting due to previous error | |
15 |