{
  "module": "Test",
  "kind": "Linearity Error",
  "text": [
    { "type": "text", "content": "Cannot borrow (immutably) the variable " },
    { "type": "code", "content": "foo" },
    { "type": "text", "content": " because it is already " },
    { "type": "text", "content": "consumed" },
    { "type": "text", "content": "." }
  ],
  "span": {
    "filename": "test-programs/suites/007-borrowing/004-explicit-borrow-after-consume/Test.aum",
    "startp": { "line": 12, "column": 8 },
    "end": { "line": 14, "column": 19 }
  },
  "context": [
    [ 10, "        let { bar: Nat8 } := foo;" ],
    [ 11, "        -- Try to borrow it." ],
    [ 12, "        borrow fooref: &[Foo, rho] := &foo do" ],
    [ 13, "            skip;" ],
    [ 14, "        end borrow;" ],
    [ 15, "        return ExitSuccess();" ],
    [ 16, "    end;" ]
  ]
}
