Closed
Description
Came up with the following program:
struct BarStruct;
impl<'self> BarStruct {
fn foo(&'self mut self) -> @mut BarStruct { self }
}
Produced this output when compiled:
rust: task failed at 'assertion failed: self.variance.is_some()', /Users/jedestep/rust/rust/src/librustc/middle/typeck/rscope.rs:182
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/jedestep/rust/rust/src/librustc/rustc.rc:400
rust: domain main @0x7f8fe900c610 root task failed