-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unexpected error #400
Comments
Slightly minimized: fn f(a: &mut i32, b: &mut i32, cond : bool) {
let mut y = &mut *a;
let mut i = 0;
while i < 32 {
if cond {
y = &mut *a;
}
else {
y = &mut *b;
}
i += 1;
}
} |
I minimized this example even further: fn main() {
let mut a = 0;
let mut b = 1;
let mut y = &mut a;
let mut i = 0;
while i < 32 {
y = &mut b;
i += 1;
}
} The error message is not exactly the same, is it a distinct issue?
|
Yes, it is probably a distinct issue... But I will clause this only once all the snippets above get accepted by the translation. |
I investigated the issue: it stems from the fact that the implementation does not properly handle joins of loan values. It is a known issue (the same problem appears in this test, which is marked as |
Reported by @ Cemoixerestre.
The following program triggers an "Unexpected" failure:
The text was updated successfully, but these errors were encountered: