wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

rust: An export taking a list of a type which contains a borrow handle of an imported resource doesn't work

Open alexcrichton opened this issue 2 years ago • 0 comments

For example this will fail to generate correct bindings:

package a:b;

interface a {
  resource b;
}

world foo {
  use a.{b};
  export f: func(x: list<borrow<b>>);
}

alexcrichton avatar Jan 09 '24 22:01 alexcrichton