#![allow(dead_code)] trait Get : 'static { fn get(&self, t: T) -> T; } fn get_min_from_max<'min, 'max>(v: Box>) -> Box> where 'max : 'min { v //~ ERROR mismatched types } fn get_max_from_min<'min, 'max, G>(v: Box>) -> Box> where 'max : 'min { v //~ ERROR mismatched types } fn main() { }