Skip to content

Commit 7f98bef

Browse files
committed
fix doc test in mir_build for removing type ascription
1 parent f544899 commit 7f98bef

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,9 @@ enum ArmType {
685685
/// For example, if we are constructing a witness for the match against
686686
///
687687
/// ```compile_fail,E0004
688-
/// # #![feature(type_ascription)]
689688
/// struct Pair(Option<(u32, u32)>, bool);
690689
/// # fn foo(p: Pair) {
691-
/// match (p: Pair) {
690+
/// match p {
692691
/// Pair(None, _) => {}
693692
/// Pair(_, false) => {}
694693
/// }

0 commit comments

Comments
 (0)