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/suggestions/field-access.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/suggestions/field-access.stderr')
-rw-r--r-- | src/test/ui/suggestions/field-access.stderr | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/test/ui/suggestions/field-access.stderr b/src/test/ui/suggestions/field-access.stderr deleted file mode 100644 index b9f0f788b..000000000 --- a/src/test/ui/suggestions/field-access.stderr +++ /dev/null @@ -1,67 +0,0 @@ -error[E0308]: mismatched types - --> $DIR/field-access.rs:20:12 - | -LL | Fst, - | --- unit variant defined here -... -LL | if let B::Fst = a {}; - | ^^^^^^ - this expression has type `A` - | | - | expected struct `A`, found enum `B` - | -help: you might have meant to use field `b` whose type is `B` - | -LL | if let B::Fst = a.b {}; - | ~~~ - -error[E0308]: mismatched types - --> $DIR/field-access.rs:25:9 - | -LL | Fst, - | --- unit variant defined here -... -LL | match a { - | - this expression has type `A` -... -LL | B::Fst => (), - | ^^^^^^ expected struct `A`, found enum `B` - | -help: you might have meant to use field `b` whose type is `B` - | -LL | match a.b { - | ~~~ - -error[E0308]: mismatched types - --> $DIR/field-access.rs:26:9 - | -LL | Snd, - | --- unit variant defined here -... -LL | match a { - | - this expression has type `A` -... -LL | B::Snd => (), - | ^^^^^^ expected struct `A`, found enum `B` - | -help: you might have meant to use field `b` whose type is `B` - | -LL | match a.b { - | ~~~ - -error[E0308]: mismatched types - --> $DIR/field-access.rs:32:9 - | -LL | match foo { - | --- this expression has type `Foo` -LL | -LL | 1u32 => (), - | ^^^^ expected union `Foo`, found `u32` - | -help: you might have meant to use field `bar` whose type is `u32` - | -LL | match unsafe { foo.bar } { - | ~~~~~~~~~~~~~~~~~~ - -error: aborting due to 4 previous errors - -For more information about this error, try `rustc --explain E0308`. |