blob: 7103533e1da902d52aea65c00584a7333466a26f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-pass
trait Trait {
type Type;
}
impl<'a> Trait for &'a () {
type Type = u32;
}
fn foo<'a>(t: <&'a () as Trait>::Type) -> <&'a () as Trait>::Type {
t
}
fn main() {
assert_eq!(foo(4), 4);
}
|