blob: 4a6499b9b2e879d265d1818de8e77f7e0a6304f4 (
plain) (
blame)
1
2
3
4
5
6
|
namespace;
include rt;
// expect: a borrowed parameter cannot be returned as an owned result
.u mk(.m q) { return q; }
fn main() { let x = rt.new(1); let y = mk(x); return y[0]; }
|