rust/tests/ui/issues/issue-23406.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
186 B
Rust
Raw Normal View History

//@ 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() {}