Must check mutability when instantiating impl &T methods #3261
Labels
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone
Here is some code that segfaults.
If I replace the impl with
fn with(x: &X, blk: fn(...))
then the program is correctly rejected.The text was updated successfully, but these errors were encountered: