|
1 | 1 | -- Error: tests/neg-custom-args/captures/i24373a.scala:15:8 ------------------------------------------------------------ |
| 2 | +Separation failure: Illegal access to (x1 : Bar^), which was passed as a consume parameter to method sink1 |
| 3 | +and therefore is no longer available. |
| 4 | + |
| 5 | +where: ^ refers to a fresh root capability in the type of value x1 |
| 6 | +13 | sink1(x1) |
| 7 | + | -- |
| 8 | + | The capability was consumed here. |
| 9 | +14 | sink1(x1) // ok, rd/rd |
2 | 10 | 15 | sink2(x1) // error |
3 | 11 | | ^^ |
4 | | - | Separation failure: Illegal access to (x1 : Bar^), which was passed as a consume parameter to method sink1 |
5 | | - | on line 13 and therefore is no longer available. |
6 | | - | |
7 | | - | where: ^ refers to a fresh root capability in the type of value x1 |
| 12 | + | Then, it was used here |
| 13 | + |
8 | 14 | -- Error: tests/neg-custom-args/captures/i24373a.scala:19:8 ------------------------------------------------------------ |
| 15 | +Separation failure: Illegal access to x2.rd, which was passed as a consume parameter to method sink2 |
| 16 | +and therefore is no longer available. |
| 17 | +18 | sink2(x2) |
| 18 | + | -- |
| 19 | + | The capability was consumed here. |
9 | 20 | 19 | sink1(x2) // error |
10 | 21 | | ^^ |
11 | | - | Separation failure: Illegal access to x2.rd, which was passed as a consume parameter to method sink2 |
12 | | - | on line 18 and therefore is no longer available. |
| 22 | + | Then, it was used here |
| 23 | + |
13 | 24 | -- Error: tests/neg-custom-args/captures/i24373a.scala:20:8 ------------------------------------------------------------ |
| 25 | +Separation failure: Illegal access to (x2 : Bar^), which was passed as a consume parameter to method sink2 |
| 26 | +and therefore is no longer available. |
| 27 | + |
| 28 | +where: ^ refers to a fresh root capability in the type of value x2 |
| 29 | +18 | sink2(x2) |
| 30 | + | -- |
| 31 | + | The capability was consumed here. |
| 32 | +19 | sink1(x2) // error |
14 | 33 | 20 | sink2(x2) // error |
15 | 34 | | ^^ |
16 | | - | Separation failure: Illegal access to (x2 : Bar^), which was passed as a consume parameter to method sink2 |
17 | | - | on line 18 and therefore is no longer available. |
18 | | - | |
19 | | - | where: ^ refers to a fresh root capability in the type of value x2 |
| 35 | + | Then, it was used here |
| 36 | + |
20 | 37 | -- Error: tests/neg-custom-args/captures/i24373a.scala:25:8 ------------------------------------------------------------ |
| 38 | +Separation failure: Illegal access to (x3 : Bar^), which was passed as a consume parameter to method sink3 |
| 39 | +and therefore is no longer available. |
| 40 | + |
| 41 | +where: ^ refers to a fresh root capability in the type of value x3 |
| 42 | +23 | sink3(x3) |
| 43 | + | -- |
| 44 | + | The capability was consumed here. |
| 45 | +24 | sink3(x3) // ok, rd/rd |
21 | 46 | 25 | sink2(x3) // error |
22 | 47 | | ^^ |
23 | | - | Separation failure: Illegal access to (x3 : Bar^), which was passed as a consume parameter to method sink3 |
24 | | - | on line 23 and therefore is no longer available. |
25 | | - | |
26 | | - | where: ^ refers to a fresh root capability in the type of value x3 |
| 48 | + | Then, it was used here |
| 49 | + |
27 | 50 | -- Error: tests/neg-custom-args/captures/i24373a.scala:29:8 ------------------------------------------------------------ |
| 51 | +Separation failure: Illegal access to x4.rd, which was passed as a consume parameter to method sink2 |
| 52 | +and therefore is no longer available. |
| 53 | +28 | sink2(x4) |
| 54 | + | -- |
| 55 | + | The capability was consumed here. |
28 | 56 | 29 | sink3(x4) // error |
29 | 57 | | ^^ |
30 | | - | Separation failure: Illegal access to x4.rd, which was passed as a consume parameter to method sink2 |
31 | | - | on line 28 and therefore is no longer available. |
| 58 | + | Then, it was used here |
| 59 | + |
32 | 60 | -- Error: tests/neg-custom-args/captures/i24373a.scala:30:8 ------------------------------------------------------------ |
| 61 | +Separation failure: Illegal access to (x4 : Bar^), which was passed as a consume parameter to method sink2 |
| 62 | +and therefore is no longer available. |
| 63 | + |
| 64 | +where: ^ refers to a fresh root capability in the type of value x4 |
| 65 | +28 | sink2(x4) |
| 66 | + | -- |
| 67 | + | The capability was consumed here. |
| 68 | +29 | sink3(x4) // error |
33 | 69 | 30 | sink2(x4) // error |
34 | 70 | | ^^ |
35 | | - | Separation failure: Illegal access to (x4 : Bar^), which was passed as a consume parameter to method sink2 |
36 | | - | on line 28 and therefore is no longer available. |
37 | | - | |
38 | | - | where: ^ refers to a fresh root capability in the type of value x4 |
| 71 | + | Then, it was used here |
| 72 | + |
0 commit comments