1 // ignore-compare-mode-chalk
2 #![feature(type_alias_impl_trait)]
6 //~^ ERROR could not find defining uses
10 Bar(42) //~ ERROR mismatched types
13 type Foo2 = impl Debug;
16 let x = || -> Foo2 { 42 };
19 type Foo3 = impl Debug;
20 //~^ ERROR could not find defining uses
23 let y: i32 = x; //~ ERROR mismatched types
26 define3(42) //~ ERROR mismatched types
29 type Foo4 = impl Debug;
30 //~^ ERROR could not find defining uses
34 //~^ ERROR mismatched types [E0308]