2019-07-03 06:30:28 +09:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2016-08-30 00:03:29 +03:00
|
|
|
trait DeclarationParser {
|
|
|
|
type Declaration;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct DeclarationListParser<'i, I, P>
|
|
|
|
where P: DeclarationParser<Declaration = I>
|
|
|
|
{
|
|
|
|
input: &'i (),
|
|
|
|
parser: P
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|