rust/tests/rustdoc/auxiliary/elided-lifetime.rs

12 lines
147 B
Rust
Raw Normal View History

#![crate_name = "bar"]
pub struct Ref<'a>(&'a u32);
pub fn test5(a: &u32) -> Ref {
Ref(a)
}
pub fn test6(a: &u32) -> Ref<'_> {
Ref(a)
}