]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/trait-pub-assoc-ty.stderr
Stabilize `param_attrs` in Rust 1.39.0
[rust.git] / src / test / ui / parser / trait-pub-assoc-ty.stderr
index b8eab4e87bf0b1a8b6f6b6668a5f635e22da38b1..400be6af22a82cdb7072a49fc1dda9121280ae8e 100644 (file)
@@ -1,10 +1,8 @@
-error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
+error: unnecessary visibility qualifier
   --> $DIR/trait-pub-assoc-ty.rs:2:5
    |
-LL | trait Foo {
-   |            - expected one of 7 possible tokens here
 LL |     pub type Foo;
-   |     ^^^ unexpected token
+   |     ^^^ `pub` not permitted here
 
 error: aborting due to previous error