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
A-codegenArea: Code generationE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
struct Foo { x: int }
fn main() {
let _ = Foo { x: 0, ..fail };
}
Compiling this results in an ICE:
bugs/record-update-ice.rs:4:24: 4:28 error: internal compiler error: bad base expr type in record
bugs/record-update-ice.rs:4 let _ = Foo { x: 0, ..fail };
^~~~
The text was updated successfully, but these errors were encountered:
Apparently fixed with some recent work in the typechecker:
./t.rs:4:6: 4:33 error: cannot determine a type for this local variable: unconstrained type
./t.rs:4 let _ = Foo { x: 0, ..fail!() };
^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Closing as fixed. Reopen if you feel this is not correct behavior.
A-codegenArea: Code generationE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Compiling this results in an ICE:
The text was updated successfully, but these errors were encountered: