mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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;
|
|
}
|