save-analysis: fix a bracket counting bug
This commit is contained in:
parent
952614bc8b
commit
7ca560d6ab
3 changed files with 23 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue