save-analysis: fix a bracket counting bug

This commit is contained in:
Nick Cameron 2015-05-14 17:44:08 +12:00
parent 952614bc8b
commit 7ca560d6ab
3 changed files with 23 additions and 14 deletions

View file

@ -352,3 +352,15 @@ impl Iterator for nofields {
panic!()
}
}
trait Pattern<'a> {
type Searcher;
}
struct CharEqPattern;
impl<'a> Pattern<'a> for CharEqPattern {
type Searcher = CharEqPattern;
}
struct CharSearcher<'a>(<CharEqPattern as Pattern<'a>>::Searcher);