error[E0599]: no method named `foo` found for type parameter `T` in the current scope
--> $DIR/issue-65284-suggest-generic-trait-bound.rs:8:7
|
+LL | fn do_stuff<T : Bar>(t : T) {
+ | - method `foo` not found for this type parameter
LL | t.foo()
| ^^^ method not found in `T`
|