mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +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)
|
|
}
|