2021-07-26 15:01:16 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2021-04-06 20:17:50 -05:00
|
|
|
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 {}
|
2022-02-14 10:10:22 -06:00
|
|
|
//~^ ERROR conflicting implementations of trait `AnotherTrait` for type `OpaqueType`
|
2021-04-06 20:17:50 -05:00
|
|
|
fn main() {}
|