4 fn bad_echo<T>(_t: T) -> T {
5 "this should not suggest impl Trait" //~ ERROR mismatched types
8 fn bad_echo_2<T: Trait>(_t: T) -> T {
9 "this will not suggest it, because that would probably be wrong" //~ ERROR mismatched types
12 fn other_bounds_bad<T>() -> T
17 "don't suggest this, because Option<T> places additional constraints" //~ ERROR mismatched types
20 // FIXME: implement this check
21 trait GenericTrait<T> {}
23 fn used_in_trait<T>() -> T
28 "don't suggest this, because the generic param is used in the bound." //~ ERROR mismatched types