Skip to content

Commit 0e8b6cd

Browse files
committed
fix doc test in mir_build for removing type ascription
1 parent d0b2fc9 commit 0e8b6cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_mir_build/src/thir/pattern/usefulness.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,9 @@ enum ArmType {
683683
/// For example, if we are constructing a witness for the match against
684684
///
685685
/// ```compile_fail,E0004
686-
/// # #![feature(type_ascription)]
687686
/// struct Pair(Option<(u32, u32)>, bool);
688687
/// # fn foo(p: Pair) {
689-
/// match (p: Pair) {
688+
/// match p {
690689
/// Pair(None, _) => {}
691690
/// Pair(_, false) => {}
692691
/// }

0 commit comments

Comments
 (0)