| 1 | fn main() { |
| 2 | x := 5 |
| 3 | p := &x |
| 4 | _ := p + p // should be error |
| 5 | _ := p * p // should be error |
| 6 | _ := p * 2 // should be error |
| 7 | _ := p + 5 // OK but only in unsafe block, r is *int |
| 8 | _ := p - p // OK even in safe code, but n should be isize |
| 9 | } |
| 10 | |