]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-23406.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-23406.rs
CommitLineData
60c5eb7d 1// build-pass
0bf4aa26 2#![allow(dead_code)]
92a42be0
SL
3trait Inner {
4 type T;
5}
223e47cc 6
92a42be0
SL
7impl<'a> Inner for &'a i32 {
8 type T = i32;
9}
10
11fn f<'a>(x: &'a i32) -> <&'a i32 as Inner>::T {
12 *x
13}
14
15fn main() {}