X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Ferror-codes%2FE0423.stderr;h=d4860394259b7e1aeac169d0d628c8926c42cac2;hb=6e3ba6f40fb30dcdbb553b7044ef45ec49745ac3;hp=a985e963e5726b547b20125863d5629c99e571b4;hpb=82e90d64266b8a4b53935d629786e69610b33f25;p=rust.git diff --git a/src/test/ui/error-codes/E0423.stderr b/src/test/ui/error-codes/E0423.stderr index a985e963e57..d4860394259 100644 --- a/src/test/ui/error-codes/E0423.stderr +++ b/src/test/ui/error-codes/E0423.stderr @@ -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