rust/src/test/ui/issues/issue-23406.rs
2018-12-25 21:08:33 -07:00

16 lines
187 B
Rust

// compile-pass
#![allow(dead_code)]
trait Inner {
type T;
}
impl<'a> Inner for &'a i32 {
type T = i32;
}
fn f<'a>(x: &'a i32) -> <&'a i32 as Inner>::T {
*x
}
fn main() {}