]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/impl-parsing.stderr
Auto merge of #99292 - Aaron1011:stability-use-tree, r=cjgillot
[rust.git] / src / test / ui / parser / impl-parsing.stderr
index 7c2a7937c5da7c15238467ce3a98f763e5a65028..755addf14527a8a63922081e9af554b75873b533 100644 (file)
@@ -22,11 +22,19 @@ error: expected a trait, found type
 LL | impl ?Sized for .. {}
    |      ^^^^^^
 
-error: expected `impl`, found `FAIL`
-  --> $DIR/impl-parsing.rs:9:16
+error: `default` is not followed by an item
+  --> $DIR/impl-parsing.rs:9:1
    |
 LL | default unsafe FAIL
-   |                ^^^^ expected `impl`
+   | ^^^^^^^ the `default` qualifier
+   |
+   = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
+
+error: expected item, found keyword `unsafe`
+  --> $DIR/impl-parsing.rs:9:9
+   |
+LL | default unsafe FAIL
+   |         ^^^^^^ expected item
 
-error: aborting due to 5 previous errors
+error: aborting due to 6 previous errors