// revisions: good bad //[good] check-pass trait Mirror { type Image; } impl Mirror for T { type Image = T; } #[cfg(bad)] fn foo(_t: T) where for<'a> &'a T: Mirror {} #[cfg(good)] fn foo(_t: T) where for<'a> &'a T: Mirror {} fn main() { foo(()); //[bad]~^ ERROR mismatched types }