diff options
Diffstat (limited to 'tests/ui/traits/alias/issue-83613.rs')
-rw-r--r-- | tests/ui/traits/alias/issue-83613.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/traits/alias/issue-83613.rs b/tests/ui/traits/alias/issue-83613.rs new file mode 100644 index 000000000..2462e703a --- /dev/null +++ b/tests/ui/traits/alias/issue-83613.rs @@ -0,0 +1,12 @@ +#![feature(type_alias_impl_trait)] +trait OpaqueTrait {} +impl<T> OpaqueTrait for T {} +type OpaqueType = impl OpaqueTrait; +fn mk_opaque() -> OpaqueType { + || 0 +} +trait AnotherTrait {} +impl<T: Send> AnotherTrait for T {} +impl AnotherTrait for OpaqueType {} +//~^ ERROR conflicting implementations of trait `AnotherTrait` for type `OpaqueType` +fn main() {} |