]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.rs
Update upstream source from tag 'upstream/1.38.0+dfsg1'
[rustc.git] / src / test / ui / type-alias-impl-trait / type-alias-impl-trait-with-cycle-error.rs
1 #![feature(type_alias_impl_trait)]
2
3 type Foo = impl Fn() -> Foo;
4 //~^ ERROR: could not find defining uses
5
6 fn crash(x: Foo) -> Foo {
7 x
8 }
9
10 fn main() {
11
12 }