-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal compiler error: borrow-vec associated with bad sty: &ty_err #15730
Comments
It only needs one line for me fn main() {
let array = [1, 2, 3].slice(1,2);
} |
Workaround (in the sense that the compiler no longer ICE's):
I think there is some unfortunate interaction here with the way we attempt to infer which kind of numeric literals are in the array ( |
This is almost certainly a duplicate of #7813 (but maybe the integer inference codepath is slightly different?). |
This also causes the same ICE - http://is.gd/fD2WVy fn main() {
struct Foo;
let _ = [0, ..4].as_mut_ptr() as *mut Foo;
} |
Similarly: fn main() {
[].iter();
} |
Looks like it's been fixed. |
Add postfix completion for let else Adds a postfix completion for let else syntax, similar to the if let postfix.
Here is the error
Here is the code that generates the error
My system is x86_64 archlinux. The rust compiler version is
Let me know if you guys need anything else.
(The code is really short so it shouldn't be hard to just type it in to duplicate the bug)
The text was updated successfully, but these errors were encountered: