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
use std::mem;use std::raw::Slice;unsafefnfoo<T>(s:&mut[T]){// GOODletSlice{data: data,len: len } = mem::transmute::<&mut[T],Slice<T>>(s);// ICEletSlice{data: data,len: len } = mem::transmute::<&mut[T]>(s);}fnmain(){}
Output
ice.rs:9:42:9:68 error: too few type parameters provided: expected 2parameter(s) but found 1 parameter(s)[E0089]
ice.rs:9letSlice{data: data,len: len } = mem::transmute::<&mut[T]>(s);
^~~~~~~~~~~~~~~~~~~~~~~~~~
ice.rs:1:1:1:1 error: internal compiler error:Typeparameter <generic #0> out of range when substituting (root type=*const <generic #0>)
ice.rs:1use std::mem;
^
note: the compiler hit an unexpected failure path.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' failed at 'Box<Any>', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/ast_util.rs:784
STR
Output
Backtrace
Version
Similar ICE message/backtrace to #15873 and #16218, but triggered differently.
The text was updated successfully, but these errors were encountered: