Closed
Description
Aborts (no backtrace):
struct Test([i32]);
let t: &'static Test = unsafe { std::mem::transmute(&[0i32] as &[i32]) };
let & ref a = t;
With:
rustc: /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Forked from: #30240.
Metadata
Metadata
Assignees
Labels
No labels