]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.stderr
Recover gracefully from `struct ` parse errors
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-struct.stderr
index 15ce94a6d00fa955d853aa20fa6f577a7c9dab9a..a47d5506ef0b83718091e55dcd14fb26afd2c27a 100644 (file)
@@ -1,11 +1,11 @@
-error: this file contains an un-closed delimiter
-  --> $DIR/missing-close-brace-in-struct.rs:14:66
+error: this file contains an unclosed delimiter
+  --> $DIR/missing-close-brace-in-struct.rs:13:65
    |
 LL | pub(crate) struct Bar<T> {
-   |                          - un-closed delimiter
+   |                          - unclosed delimiter
 ...
 LL | fn main() {}
-   |                                                                  ^
+   |                                                                 ^
 
 error: expected identifier, found keyword `trait`
   --> $DIR/missing-close-brace-in-struct.rs:4:1
@@ -13,11 +13,5 @@ error: expected identifier, found keyword `trait`
 LL | trait T {
    | ^^^^^ expected identifier, found keyword
 
-error: expected `:`, found `T`
-  --> $DIR/missing-close-brace-in-struct.rs:4:7
-   |
-LL | trait T {
-   |       ^ expected `:`
-
-error: aborting due to 3 previous errors
+error: aborting due to 2 previous errors