diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-14 15:08:56 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-14 16:14:15 +0100 |
| commit | 24c751b2bad4a3cb6020462d3769f735762ef5b3 (patch) | |
| tree | 2ab4ee4aeb86b8c87140398bd68fda91ecda50dc /src/test | |
| parent | 393792da8d8a931643baf855369df0a009acdb19 (diff) | |
| download | rust-24c751b2bad4a3cb6020462d3769f735762ef5b3.tar.gz rust-24c751b2bad4a3cb6020462d3769f735762ef5b3.zip | |
Rustdoc-Json: Add test for extern_types
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-json/type/extern.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-json/type/extern.rs b/src/test/rustdoc-json/type/extern.rs new file mode 100644 index 00000000000..d287d5ebec5 --- /dev/null +++ b/src/test/rustdoc-json/type/extern.rs @@ -0,0 +1,10 @@ +#![feature(extern_types)] + +extern { + /// No inner information + pub type Foo; +} + +// @is "$.index[*][?(@.docs=='No inner information')].name" '"Foo"' +// @is "$.index[*][?(@.docs=='No inner information')].kind" '"foreign_type"' +// @!has "$.index[*][?(@.docs=='No inner information')].inner" |
