fix doc test in mir_build for removing type ascription
This commit is contained in:
parent
f54489978d
commit
7f98bef37f
1 changed files with 1 additions and 2 deletions
|
@ -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) => {}
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue