2024-04-21 19:01:04 +00:00
|
|
|
#![feature(transmutability)]
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
trait OpaqueTrait {}
|
|
|
|
type OpaqueType = impl OpaqueTrait;
|
2024-09-21 07:04:42 +00:00
|
|
|
//~^ ERROR unconstrained opaque type
|
2024-04-21 19:01:04 +00:00
|
|
|
trait AnotherTrait {}
|
2024-08-27 14:05:54 +00:00
|
|
|
impl<T: std::mem::TransmuteFrom<(), ()>> AnotherTrait for T {}
|
2024-09-21 07:04:42 +00:00
|
|
|
//~^ ERROR type provided when a constant was expected
|
2024-04-21 19:01:04 +00:00
|
|
|
impl AnotherTrait for OpaqueType {}
|
2024-09-21 07:04:42 +00:00
|
|
|
//~^ ERROR conflicting implementations of trait `AnotherTrait`
|
2024-04-21 19:01:04 +00:00
|
|
|
pub fn main() {}
|