]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0423.stderr
Tweak some suggestions in `rustc_resolve`
[rust.git] / src / test / ui / error-codes / E0423.stderr
index a985e963e5726b547b20125863d5629c99e571b4..d4860394259b7e1aeac169d0d628c8926c42cac2 100644 (file)
@@ -45,9 +45,12 @@ error[E0423]: expected value, found struct `T`
   --> $DIR/E0423.rs:14:8
    |
 LL |     if T {} == T {} { println!("Ok"); }
-   |        ^---
-   |        |
-   |        help: surround the struct literal with parenthesis: `(T {})`
+   |        ^
+   |
+help: surround the struct literal with parentheses
+   |
+LL |     if (T {}) == T {} { println!("Ok"); }
+   |        ^    ^
 
 error: aborting due to 5 previous errors