rustc/vendor/wit-parser-0.219.1/tests/ui/use.wit
2025-01-11 15:57:26 +01:00

35 lines
442 B
Plaintext

package foo:foo;
interface foo {
use bar.{the-type};
}
interface bar {
type the-type = u32;
}
interface baz {
use foo.{the-type};
use bar.{the-type as test};
}
interface empty {
}
interface use-from-empty {
use empty.{};
use empty.{};
}
interface use-multiple {
use baz.{the-type, test};
some-function: func(x: the-type) -> test;
}
interface trailing-comma {
use foo.{the-type,};
record the-foo { a: the-type }
}