summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-23406.rs
blob: d00d5d6f944e64ebb096b9e809784344721292d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// build-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() {}