We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using self by-value with immediate values seems to cause an LLVM assertion. Ran into this while working on #6612.
trait Fooable { fn yes(self); } impl Fooable for int { fn yes(self) { io::println("Yes"); } } fn main() { 21.yes(); }
-> % rustc bar.rs rustc: /scratch/laden/rust3/src/llvm/lib/IR/Instructions.cpp:2394: static llvm::CastInst* llvm::CastInst::CreatePointerCast(llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `S->getType()->isPtrOrPtrVectorTy() && "Invalid cast"' failed. [1] 601 abort rustc bar.rs
The text was updated successfully, but these errors were encountered:
Same as #5321.
Sorry, something went wrong.
No branches or pull requests
Using self by-value with immediate values seems to cause an LLVM assertion. Ran into this while working on #6612.
The text was updated successfully, but these errors were encountered: