custom message for refutable patterns in for loops

This commit is contained in:
Jorge Aparicio
2015-01-22 17:46:40 -05:00
parent 5e1820f346
commit 76362f0a0e
6 changed files with 38 additions and 9 deletions

View File

@@ -788,6 +788,7 @@ pub enum MatchSource {
Normal,
IfLetDesugar { contains_else_clause: bool },
WhileLetDesugar,
ForLoopDesugar,
}
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]