Improve message for raw pointer missing mut and const

"Bare raw pointer" does not exist as a concept.
This commit is contained in:
David Tolnay 2016-04-14 09:46:27 -07:00
parent 3d50ad7332
commit 222f47a578
2 changed files with 3 additions and 3 deletions

View file

@ -11,5 +11,5 @@
// compile-flags: -Z parse-only
fn foo(_: *()) {
//~^ bare raw pointers are not allowed, use `*mut T` or `*const T` as appropriate
//~^ expected mut or const in raw pointer type (use `*mut T` or `*const T` as appropriate)
}