rust/src/test/ui/issues/issue-23122-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
229 B
Rust
Raw Normal View History

2016-06-16 02:46:25 -05:00
trait Next {
type Next: Next;
}
2022-02-09 04:19:31 -06:00
struct GetNext<T: Next> {
t: T,
}
2016-06-16 02:46:25 -05:00
impl<T: Next> Next for GetNext<T> {
type Next = <GetNext<T::Next> as Next>::Next;
2019-02-23 16:25:30 -06:00
//~^ ERROR overflow evaluating the requirement
2016-06-16 02:46:25 -05:00
}
fn main() {}