rust/tests/ui/issues/issue-23122-2.rs

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

16 lines
291 B
Rust
Raw Normal View History

2022-11-19 20:26:42 +00:00
// normalize-stderr-test: "long-type-\d+" -> "long-type-hash"
2016-06-16 07:46:25 +00:00
trait Next {
type Next: Next;
}
2022-02-09 10:19:31 +00:00
struct GetNext<T: Next> {
t: T,
}
2016-06-16 07:46:25 +00:00
impl<T: Next> Next for GetNext<T> {
type Next = <GetNext<T::Next> as Next>::Next;
2019-02-23 22:25:30 +00:00
//~^ ERROR overflow evaluating the requirement
2016-06-16 07:46:25 +00:00
}
fn main() {}