summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0449.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0449.stderr')
-rw-r--r--tests/ui/error-codes/E0449.stderr23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0449.stderr b/tests/ui/error-codes/E0449.stderr
new file mode 100644
index 000000000..8221a5e0a
--- /dev/null
+++ b/tests/ui/error-codes/E0449.stderr
@@ -0,0 +1,23 @@
+error[E0449]: unnecessary visibility qualifier
+ --> $DIR/E0449.rs:7:1
+ |
+LL | pub impl Bar {}
+ | ^^^ `pub` not permitted here because it's implied
+ |
+ = note: place qualifiers on individual impl items instead
+
+error[E0449]: unnecessary visibility qualifier
+ --> $DIR/E0449.rs:9:1
+ |
+LL | pub impl Foo for Bar {
+ | ^^^ `pub` not permitted here because it's implied
+
+error[E0449]: unnecessary visibility qualifier
+ --> $DIR/E0449.rs:10:5
+ |
+LL | pub fn foo() {}
+ | ^^^ `pub` not permitted here because it's implied
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0449`.