Closed
Description
Here's a fun one!
fn main() {
fn id(int n) -> int {
// this should have been 'ret n;'
ret i;
}
let int i = id(5);
log i;
}
This shouldn't compile, and it doesn't, but instead of the expected "unresolved name: i", I get all the way to trans.rs and then get:
upcall fail '.t4410', ../rust/src/comp/middle/trans.rs:3725
Apologies if this is already a known issue -- I didn't see it in a quick look through the issue tracker.
Metadata
Metadata
Assignees
Labels
No labels