2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(unused_variables)]
|
2015-01-28 10:59:50 +00:00
|
|
|
// Regression test for #21212: an overflow occurred during trait
|
|
|
|
// checking where normalizing `Self::Input` led to normalizing the
|
|
|
|
// where clauses in the environment which in turn required normalizing
|
|
|
|
// `Self::Input`.
|
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2015-01-28 10:59:50 +00:00
|
|
|
pub trait Parser {
|
|
|
|
type Input;
|
|
|
|
|
|
|
|
fn parse(input: <Self as Parser>::Input) {
|
|
|
|
panic!()
|
|
|
|
}
|
|
|
|
}
|
2015-02-12 15:29:52 +00:00
|
|
|
|
|
|
|
impl <P> Parser for P {
|
2015-01-28 10:59:50 +00:00
|
|
|
type Input = ();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|