aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/chan_ref.out
blob: 3eeb76b907bb44a6c6a00068a64acf2b67b20ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
vlib/v/checker/tests/chan_ref.vv:10:8: error: cannot push non-reference `St` on `chan &St`
    8 | fn f(ch chan &St, mut sem sync.Semaphore) {
    9 |     w := St{}
   10 |     ch <- w
      |           ^
   11 |     mut x := St{}
   12 |     ch <- x
vlib/v/checker/tests/chan_ref.vv:12:8: error: cannot push non-reference `St` on `chan &St`
   10 |     ch <- w
   11 |     mut x := St{}
   12 |     ch <- x
      |           ^
   13 |     // the following works
   14 |     y := &St{}