18 lines
195 B
Rust
18 lines
195 B
Rust
//@ known-bug: #130413
|
|
|
|
#![feature(transmutability)]
|
|
trait Aaa {
|
|
type Y;
|
|
}
|
|
|
|
trait Bbb {
|
|
type B: std::mem::TransmuteFrom<()>;
|
|
}
|
|
|
|
impl<T> Bbb for T
|
|
where
|
|
T: Aaa,
|
|
{
|
|
type B = T::Y;
|
|
}
|