mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
17 lines
255 B
Rust
17 lines
255 B
Rust
|
//@ known-bug: #113272
|
||
|
trait Trait {
|
||
|
type RefTarget;
|
||
|
}
|
||
|
|
||
|
impl Trait for () where Missing: Trait {}
|
||
|
|
||
|
struct Other {
|
||
|
data: <() as Trait>::RefTarget,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
unsafe {
|
||
|
std::mem::transmute::<Option<()>, Option<&Other>>(None);
|
||
|
}
|
||
|
}
|