Closed
Description
Trying to build this:
struct Foo(pub str);
impl Foo {
fn print(&self) {
match self {
&Foo(ref s) => println!("f\"{}\"", s),
}
}
}
fn main() {}
and I get this:
rustc: /home/shum/src/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = const llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = const llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.