about summary refs log tree commit diff
path: root/tests/rustdoc-json/type_alias.rs
blob: 7fd23a48040d1d80ae0f98eb295e48176ecc30bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ set IntVec = "$.index[?(@.name=='IntVec')].id"
//@ is "$.index[?(@.name=='IntVec')].visibility" \"public\"
//@ has "$.index[?(@.name=='IntVec')].inner.type_alias"
//@ is "$.index[?(@.name=='IntVec')].span.filename" $FILE
pub type IntVec = Vec<u32>;

//@ is "$.index[?(@.name=='f')].inner.function.sig.output.resolved_path.id" $IntVec
pub fn f() -> IntVec {
    vec![0; 32]
}

//@ !is "$.index[?(@.name=='g')].inner.function.sig.output.resolved_path.id" $IntVec
pub fn g() -> Vec<u32> {
    vec![0; 32]
}