about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorTam Pham <tam001p@gmail.com>2023-04-03 22:28:55 -0500
committerTam Pham <tam001p@gmail.com>2023-04-03 22:28:55 -0500
commit4e5c120f33780c22923539f8a1e75b3959626cb3 (patch)
tree01c74c337e7cbab28c35b0196f7cc148f2e69dd9 /tests/ui/error-codes
parent87b3ae3909d24829da338b40fa0c24e073c3a64d (diff)
downloadrust-4e5c120f33780c22923539f8a1e75b3959626cb3.tar.gz
rust-4e5c120f33780c22923539f8a1e75b3959626cb3.zip
Update ui tests involving invalid visibility qualifiers
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0449.stderr16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/ui/error-codes/E0449.stderr b/tests/ui/error-codes/E0449.stderr
index 8221a5e0ad6..cf41bcce8c2 100644
--- a/tests/ui/error-codes/E0449.stderr
+++ b/tests/ui/error-codes/E0449.stderr
@@ -1,22 +1,26 @@
-error[E0449]: unnecessary visibility qualifier
+error[E0449]: visibility qualifiers are not permitted here
   --> $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
+error[E0449]: visibility qualifiers are not permitted here
   --> $DIR/E0449.rs:9:1
    |
 LL | pub impl Foo for Bar {
-   | ^^^ `pub` not permitted here because it's implied
+   | ^^^
+   |
+   = note: trait items always share the visibility of their trait
 
-error[E0449]: unnecessary visibility qualifier
+error[E0449]: visibility qualifiers are not permitted here
   --> $DIR/E0449.rs:10:5
    |
 LL |     pub fn foo() {}
-   |     ^^^ `pub` not permitted here because it's implied
+   |     ^^^
+   |
+   = note: trait items always share the visibility of their trait
 
 error: aborting due to 3 previous errors