diff options
| author | David Tolnay <dtolnay@gmail.com> | 2016-04-14 09:46:27 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2016-04-14 09:46:30 -0700 |
| commit | 222f47a578887cf863bd51b508dbfe313cff2ab1 (patch) | |
| tree | e061e63c3094498ee226991d2a20d1139d8a2b2a /src/test/parse-fail | |
| parent | 3d50ad733229ecc9a8412cf372370aa0be1213d8 (diff) | |
| download | rust-222f47a578887cf863bd51b508dbfe313cff2ab1.tar.gz rust-222f47a578887cf863bd51b508dbfe313cff2ab1.zip | |
Improve message for raw pointer missing mut and const
"Bare raw pointer" does not exist as a concept.
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/bad-pointer-type.rs (renamed from src/test/parse-fail/bare-raw-pointer.rs) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/parse-fail/bare-raw-pointer.rs b/src/test/parse-fail/bad-pointer-type.rs index d6d1e2d9c4f..cdb4d16fed2 100644 --- a/src/test/parse-fail/bare-raw-pointer.rs +++ b/src/test/parse-fail/bad-pointer-type.rs @@ -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) } |
