]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/struct-literal-in-while.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / parser / struct-literal-in-while.stderr
index 6ecc14cd08182a94b97732ebeb5f4482cb554efb..9a6ab81e7c02f98d2af01ae941b7ac275771c963 100644 (file)
@@ -1,14 +1,28 @@
 error: expected type, found `3`
-  --> $DIR/struct-literal-in-while.rs:25:12
+  --> $DIR/struct-literal-in-while.rs:13:12
    |
 LL |         x: 3    //~ ERROR expected type, found `3`
    |            ^ expecting a type here because of type ascription
 
 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
-  --> $DIR/struct-literal-in-while.rs:26:12
+  --> $DIR/struct-literal-in-while.rs:14:12
    |
 LL |     }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
    |            ^ expected one of `.`, `;`, `?`, `}`, or an operator here
 
-error: aborting due to 2 previous errors
+error[E0423]: expected value, found struct `Foo`
+  --> $DIR/struct-literal-in-while.rs:12:11
+   |
+LL |     while Foo { //~ ERROR expected value, found struct `Foo`
+   |           ^^^ did you mean `(Foo { /* fields */ })`?
+
+error[E0599]: no method named `hi` found for type `()` in the current scope
+  --> $DIR/struct-literal-in-while.rs:14:7
+   |
+LL |     }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
+   |       ^^
+
+error: aborting due to 4 previous errors
 
+Some errors occurred: E0423, E0599.
+For more information about an error, try `rustc --explain E0423`.