summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/issue-53398-cyclic-types.rs
blob: 4a11bb5020e6d21aa3a0da8725a843b5b4684f9b (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(type_alias_impl_trait)]

type Foo = impl Fn() -> Foo;

fn foo() -> Foo {
//~^ ERROR: overflow evaluating the requirement
    foo
}

fn main() {}