rust/tests/ui/impl-trait/failed-to-resolve-instance-ice-123145.rs

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

21 lines
365 B
Rust
Raw Permalink Normal View History

// ICE failed to resolve instance for ...
// issue: rust-lang/rust#123145
//@ build-fail
//~^^^ ERROR overflow evaluating the requirement `(fn() -> impl Handler
trait Handler {
fn handle(&self) {}
}
impl<H: Handler, F: Fn() -> H> Handler for F {}
impl<L: Handler> Handler for (L,) {}
fn one() -> impl Handler {
(one,)
}
fn main() {
one.handle();
}