]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/primitives/primitive_type.rs
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / rustdoc-json / primitives / primitive_type.rs
1 #![feature(never_type)]
2
3 // @is "$.index[*][?(@.name=='PrimNever')].visibility" \"public\"
4 // @is "$.index[*][?(@.name=='PrimNever')].inner.type.kind" \"primitive\"
5 // @is "$.index[*][?(@.name=='PrimNever')].inner.type.inner" \"never\"
6 pub type PrimNever = !;
7
8 // @is "$.index[*][?(@.name=='PrimStr')].inner.type.kind" \"primitive\"
9 // @is "$.index[*][?(@.name=='PrimStr')].inner.type.inner" \"str\"
10 pub type PrimStr = str;
11
12 // @is "$.index[*][?(@.name=='PrimBool')].inner.type.kind" \"primitive\"
13 // @is "$.index[*][?(@.name=='PrimBool')].inner.type.inner" \"bool\"
14 pub type PrimBool = bool;
15
16 // @is "$.index[*][?(@.name=='PrimChar')].inner.type.kind" \"primitive\"
17 // @is "$.index[*][?(@.name=='PrimChar')].inner.type.inner" \"char\"
18 pub type PrimChar = char;
19
20 // @is "$.index[*][?(@.name=='PrimU8')].inner.type.kind" \"primitive\"
21 // @is "$.index[*][?(@.name=='PrimU8')].inner.type.inner" \"u8\"
22 pub type PrimU8 = u8;