mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
18 lines
235 B
Rust
18 lines
235 B
Rust
//@ known-bug: #124031
|
|
|
|
trait Trait {
|
|
type RefTarget;
|
|
}
|
|
|
|
impl Trait for () {}
|
|
|
|
struct Other {
|
|
data: <() as Trait>::RefTarget,
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
std::mem::transmute::<Option<()>, Option<&Other>>(None);
|
|
}
|
|
}
|