]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-53398-cyclic-types.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / issue-53398-cyclic-types.rs
1 #![feature(type_alias_impl_trait)]
2
3 type Foo = impl Fn() -> Foo;
4
5 fn foo() -> Foo {
6 //~^ ERROR: overflow evaluating the requirement
7     foo
8 }
9
10 fn main() {}