]> git.proxmox.com Git - rustc.git/blob - tests/ui/type-alias-impl-trait/issue-65384.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / type-alias-impl-trait / issue-65384.rs
1 #![feature(type_alias_impl_trait)]
2 #![allow(incomplete_features)]
3
4 trait MyTrait {}
5
6 impl MyTrait for () {}
7
8 type Bar = impl MyTrait;
9
10 impl MyTrait for Bar {}
11 //~^ ERROR: conflicting implementations of trait `MyTrait` for type `()`
12
13 fn bazr() -> Bar { }
14
15 fn main() {}