]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-65384.rs
Rollup merge of #106716 - c410-f3r:rfc-2397-1, r=davidtwco
[rust.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() {}