diff options
| author | bors <bors@rust-lang.org> | 2020-07-14 17:11:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-07-14 17:11:02 +0000 |
| commit | 2002ebacfbca288830a3c308ddc8189705c608fe (patch) | |
| tree | d02268730c1ae866eb4a1ec31e144592b868be3d /src/test/ui/missing/missing-fields-in-struct-pattern.rs | |
| parent | c724b67e1b474262917a5154d74e7072267593fe (diff) | |
| parent | 5414eae4521d0b6141b9db4c44be144757e5d5fb (diff) | |
| download | rust-2002ebacfbca288830a3c308ddc8189705c608fe.tar.gz rust-2002ebacfbca288830a3c308ddc8189705c608fe.zip | |
Auto merge of #74330 - Manishearth:rollup-mrc09pb, r=Manishearth
Rollup of 15 pull requests Successful merges: - #71237 (Add Ayu theme to rustdoc) - #73720 (Clean up E0704 error explanation) - #73866 (Obviate #[allow(improper_ctypes_definitions)]) - #73965 (typeck: check for infer before type impls trait) - #73986 (add (unchecked) indexing methods to raw (and NonNull) slices) - #74173 (Detect tuple struct incorrectly used as struct pat) - #74220 (Refactor Windows `parse_prefix`) - #74227 (Remove an unwrap in layout computation) - #74239 (Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit ) - #74257 (don't mark linux kernel module targets as a unix environment) - #74270 (typeck: report placeholder type error w/out span) - #74296 (Clarify the description for rfind) - #74310 (Use `ArrayVec` in `SparseBitSet`.) - #74316 (Remove unnecessary type hints from Wake internals) - #74324 (Update Clippy) Failed merges: r? @ghost
Diffstat (limited to 'src/test/ui/missing/missing-fields-in-struct-pattern.rs')
| -rw-r--r-- | src/test/ui/missing/missing-fields-in-struct-pattern.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/ui/missing/missing-fields-in-struct-pattern.rs b/src/test/ui/missing/missing-fields-in-struct-pattern.rs index 24b6b55db66..40304a674a6 100644 --- a/src/test/ui/missing/missing-fields-in-struct-pattern.rs +++ b/src/test/ui/missing/missing-fields-in-struct-pattern.rs @@ -2,8 +2,7 @@ struct S(usize, usize, usize, usize); fn main() { if let S { a, b, c, d } = S(1, 2, 3, 4) { - //~^ ERROR struct `S` does not have fields named `a`, `b`, `c`, `d` [E0026] - //~| ERROR pattern does not mention fields `0`, `1`, `2`, `3` [E0027] + //~^ ERROR tuple variant `S` written as struct variant println!("hi"); } } |
