``` rust #![allow(dead_code)] mod x { #[no_mangle] fn f() { } } mod y { #[no_mangle] fn f(_: i32) { } } fn main() { } ``` > rustc: /build/rust-git/src/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y_) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty<X, Y_>::ret_type = llvm::Function*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.