]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bad-pointer-type.stderr
Auto merge of #101030 - woppopo:const_location, r=scottmcm
[rust.git] / src / test / ui / parser / bad-pointer-type.stderr
1 error: expected `mut` or `const` keyword in raw pointer type
2   --> $DIR/bad-pointer-type.rs:1:11
3    |
4 LL | fn foo(_: *()) {
5    |           ^
6    |
7 help: add `mut` or `const` here
8    |
9 LL | fn foo(_: *const ()) {
10    |            +++++
11 LL | fn foo(_: *mut ()) {
12    |            +++
13
14 error: aborting due to previous error
15