]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/auxiliary/elided-lifetime.rs
Rollup merge of #84464 - jyn514:type-kind, r=CraftSpider
[rust.git] / src / test / rustdoc / auxiliary / elided-lifetime.rs
1 #![crate_name = "bar"]
2
3 pub struct Ref<'a>(&'a u32);
4
5 pub fn test5(a: &u32) -> Ref {
6     Ref(a)
7 }
8
9 pub fn test6(a: &u32) -> Ref<'_> {
10     Ref(a)
11 }