Skip to content

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

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)"?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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