mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +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)
|
|
}
|