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
structFoo{name:Box<str>}implFoo{fnnew(name:Box<str>) -> Foo{Foo{name: name }}}fnmain(){}
Compilation fails with ICE:
error: internal compiler error: sequence_element_type called on non-sequence value: Box<str>
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>', /home/matrix/github/rust/src/libsyntax/diagnostic.rs:169
fix: Errors on method call inferences with elided lifetimes
Fixesrust-lang#17734
Currently, we are matching non-lifetime(type or const) generic arg to liftime argument position while building substs for method calling when there are elided lifetimes.
This mismatch just make a subst for error lifetime and while this alone is not much a trouble, it also makes the mismatched type or const generic arg cannot be used in its proper place and this makes type inference failure
Code:
Compilation fails with ICE:
The text was updated successfully, but these errors were encountered: