2 // Tests that you can use a fn lifetime parameter as part of
3 // the value for a type parameter in a bound.
10 #[derive(Copy, Clone)]
15 impl<T:Clone> Get<T> for Box<T> {
21 fn add<'a,G:Get<&'a isize>>(g1: G, g2: G) -> isize {
26 let b1 = Box { t: &3 };
27 assert_eq!(add(b1, b1), 6);