Skip to content

[Bug?] Failed to type check identity function #5

@jialunzhang-psu

Description

@jialunzhang-psu
    @Test
    public void test_0x08A() throws IOException {
        String input = "fn id(mut x : []&'a mut int) -> &'a mut int { *x }";
        input += " { let mut v1 = 1; let mut f1 = &mut v1; let mut a = box f1; let mut p = id(a); !*p }";
        check(input, One);
    }

Why would this test fail to "line 1: incompatible argument(s)"?

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