summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/public-instead-of-pub-1.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/public-instead-of-pub-1.fixed')
-rw-r--r--tests/ui/parser/public-instead-of-pub-1.fixed11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/public-instead-of-pub-1.fixed b/tests/ui/parser/public-instead-of-pub-1.fixed
new file mode 100644
index 000000000..a4fa68ba5
--- /dev/null
+++ b/tests/ui/parser/public-instead-of-pub-1.fixed
@@ -0,0 +1,11 @@
+// Checks what happens when `public` is used instead of the correct, `pub`
+// run-rustfix
+
+pub enum Test {
+ //~^ ERROR expected one of `!` or `::`, found keyword `enum`
+ //~^^ HELP write `pub` instead of `public` to make the item public
+ A,
+ B,
+}
+
+fn main() { }