diff options
Diffstat (limited to 'tests/ui/parser/public-instead-of-pub.rs')
| -rw-r--r-- | tests/ui/parser/public-instead-of-pub.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/parser/public-instead-of-pub.rs b/tests/ui/parser/public-instead-of-pub.rs index 18e0fd3af1c..9507477fcd3 100644 --- a/tests/ui/parser/public-instead-of-pub.rs +++ b/tests/ui/parser/public-instead-of-pub.rs @@ -1,6 +1,6 @@ // Checks what happens when `public` is used instead of the correct, `pub` -// edition:2018 -// run-rustfix +//@ edition:2018 +//@ run-rustfix public struct X; //~^ ERROR expected one of `!` or `::`, found keyword `struct` //~^^ HELP write `pub` instead of `public` to make the item public |
