diff options
| author | yukang <moorekang@gmail.com> | 2023-03-16 07:00:55 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2023-05-01 16:15:17 +0800 |
| commit | 7f98bef37f7dbb43d1a1eaad8cd19529173b35cd (patch) | |
| tree | 6d77b59b968364bca60edabd05def8030526ca9d /compiler | |
| parent | f54489978d478797108218fda90e1c929e657937 (diff) | |
| download | rust-7f98bef37f7dbb43d1a1eaad8cd19529173b35cd.tar.gz rust-7f98bef37f7dbb43d1a1eaad8cd19529173b35cd.zip | |
fix doc test in mir_build for removing type ascription
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/pattern/usefulness.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/src/thir/pattern/usefulness.rs b/compiler/rustc_mir_build/src/thir/pattern/usefulness.rs index d8f66a1755b..f229b10c447 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/usefulness.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/usefulness.rs @@ -685,10 +685,9 @@ enum ArmType { /// For example, if we are constructing a witness for the match against /// /// ```compile_fail,E0004 -/// # #![feature(type_ascription)] /// struct Pair(Option<(u32, u32)>, bool); /// # fn foo(p: Pair) { -/// match (p: Pair) { +/// match p { /// Pair(None, _) => {} /// Pair(_, false) => {} /// } |
