You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){let v = vec![&3i,&4i,&5i];for&&x in v.iter(){println!("{}", x + 3);}}
Which yields
<anon>:4:10: 4:12 error: internal compiler error: Explicit deref of non-derefable type: core::slice::Items<'_, &int>
<anon>:4 for &&x in v.iter() {
^~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', /build/rust-git/src/rust/src/libsyntax/diagnostic.rs:116
playpen: application terminated with error code 101
Program ended.
Activity
jfager commentedon Jul 25, 2014
With backtrace:
This is an explicit span_bug call in middle/mem_categorization, which I'm assuming implies that this error should have been caught upstream somewhere.
mahkoh commentedon Sep 13, 2014
wackywendell commentedon Dec 1, 2014
Here is another example program (rust playpen):
Which yields
rollup merge of rust-lang#19780: jakub-/e-needstest
rollup merge of rust-lang#19780: jakub-/e-needstest
Auto merge of rust-lang#15480 - matklad:lsp-server-up, r=Veykril