]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/coherence/coherence-with-generator.rs
1 // Test that encountering closures during coherence does not cause issues.
2 #![feature(type_alias_impl_trait, generators)]
3 type OpaqueGenerator
= impl Sized
;
4 fn defining_use() -> OpaqueGenerator
{
14 impl Trait
for Wrapper
<OpaqueGenerator
> {}
15 //~^ ERROR cannot implement trait on type alias impl trait
16 impl<T
: Sync
> Trait
for Wrapper
<T
> {}
17 //~^ ERROR conflicting implementations of trait `Trait` for type `Wrapper<OpaqueGenerator>`