mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 09:53:26 +00:00
12 lines
147 B
Rust
12 lines
147 B
Rust
![]() |
#![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)
|
||
|
}
|