diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/error-codes/E0423.stderr | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/error-codes/E0423.stderr')
-rw-r--r-- | src/test/ui/error-codes/E0423.stderr | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/test/ui/error-codes/E0423.stderr b/src/test/ui/error-codes/E0423.stderr deleted file mode 100644 index ac70d905d..000000000 --- a/src/test/ui/error-codes/E0423.stderr +++ /dev/null @@ -1,63 +0,0 @@ -error: struct literals are not allowed here - --> $DIR/E0423.rs:12:32 - | -LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); } - | ^^^^^^^^^^^^^^^^ - | -help: surround the struct literal with parentheses - | -LL | if let S { x: _x, y: 2 } = (S { x: 1, y: 2 }) { println!("Ok"); } - | + + - -error: expected expression, found `==` - --> $DIR/E0423.rs:14:13 - | -LL | if T {} == T {} { println!("Ok"); } - | ^^ expected expression - -error: struct literals are not allowed here - --> $DIR/E0423.rs:20:14 - | -LL | for _ in std::ops::Range { start: 0, end: 10 } {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: surround the struct literal with parentheses - | -LL | for _ in (std::ops::Range { start: 0, end: 10 }) {} - | + + - -error[E0423]: expected value, found struct `T` - --> $DIR/E0423.rs:14:8 - | -LL | if T {} == T {} { println!("Ok"); } - | ^ not a value - | -help: surround the struct literal with parentheses - | -LL | if (T {}) == T {} { println!("Ok"); } - | + + - -error[E0423]: expected function, tuple struct or tuple variant, found struct `Foo` - --> $DIR/E0423.rs:4:13 - | -LL | struct Foo { a: bool }; - | ---------------------- `Foo` defined here -LL | -LL | let f = Foo(); - | ^^^^^ -... -LL | fn foo() { - | -------- similarly named function `foo` defined here - | -help: use struct literal syntax instead - | -LL | let f = Foo { a: val }; - | ~~~~~~~~~~~~~~ -help: a function with a similar name exists - | -LL | let f = foo(); - | ~~~ - -error: aborting due to 5 previous errors - -For more information about this error, try `rustc --explain E0423`. |