]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/feature-gates/feature-gate-type_alias_impl_trait.rs
1 // ignore-compare-mode-chalk
2 #![feature(min_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 }
; //~ ERROR not permitted here
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 not permitted here