Closed
Description
struct Foo {
dummy: ()
}
impl Foo {
fn xx(&'self self) {
}
}
fn main() {
}
Compiler crashes with:
rust: task failed at 'assertion failed: self.variance.is_some()', /private/tmp/rust-CauM/rust-0.7/src/librustc/middle/typeck/rscope.rs:181
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', /private/tmp/rust-CauM/rust-0.7/src/librustc/rustc.rs:354
rust: domain main @0x7f94e9008a10 root task failed
If program is incorrect, compiler should print message and exit.
Activity
pnkfelix commentedon Oct 2, 2013
probably a subbug of #4846
nikomatsakis commentedon Oct 9, 2013
cc me
eminence commentedon Jan 25, 2014
Testing on the latest master (dc48adc)
After changing
'self
to'a
, there is no longer an ICE. A correct error message is produced:steveklabnik commentedon Aug 12, 2014
I see the same as @eminence . I think this can be closed.
Auto merge of rust-lang#8196 - flip1995:rustup, r=flip1995