Skip to content

reborrows depend on the current inference state #17

@lcnr

Description

@lcnr
fn foo(x: &mut u32) {}

fn mk<T>() -> T {
    todo!()
}

fn bar<'a, 'b>(mut y: &'a mut u32) {
    let mut x: /* &mut _ */ = mk();
    foo(x);
    y = x;
}

gamer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions