summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/public-instead-of-pub-1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/public-instead-of-pub-1.stderr')
-rw-r--r--src/test/ui/parser/public-instead-of-pub-1.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/public-instead-of-pub-1.stderr b/src/test/ui/parser/public-instead-of-pub-1.stderr
new file mode 100644
index 000000000..795a5bcf5
--- /dev/null
+++ b/src/test/ui/parser/public-instead-of-pub-1.stderr
@@ -0,0 +1,13 @@
+error: expected one of `!` or `::`, found keyword `enum`
+ --> $DIR/public-instead-of-pub-1.rs:4:8
+ |
+LL | public enum Test {
+ | ^^^^ expected one of `!` or `::`
+ |
+help: write `pub` instead of `public` to make the item public
+ |
+LL | pub enum Test {
+ | ~~~
+
+error: aborting due to previous error
+