fix doc test in mir_build for removing type ascription

This commit is contained in:
yukang 2023-03-16 07:00:55 +08:00
parent f54489978d
commit 7f98bef37f
1 changed files with 1 additions and 2 deletions

View File

@ -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) => {}
/// }