mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
fix doc test in mir_build for removing type ascription
This commit is contained in:
parent
f54489978d
commit
7f98bef37f
@ -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…
Reference in New Issue
Block a user