]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/auxiliary/elided-lifetime.rs
Merge branch 'master' into feature/incorporate-tracing
[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 }