mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
23 lines
435 B
Rust
23 lines
435 B
Rust
//@ run-pass
|
|
#![allow(unused_variables)]
|
|
// 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`.
|
|
|
|
|
|
pub trait Parser {
|
|
type Input;
|
|
|
|
fn parse(input: <Self as Parser>::Input) {
|
|
panic!()
|
|
}
|
|
}
|
|
|
|
impl <P> Parser for P {
|
|
type Input = ();
|
|
}
|
|
|
|
fn main() {
|
|
}
|