]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-65284-suggest-generic-trait-bound.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / traits / issue-65284-suggest-generic-trait-bound.rs
1 trait Foo {
2     fn foo(&self);
3 }
4
5 trait Bar {}
6
7 fn do_stuff<T : Bar>(t : T) {
8     t.foo() //~ ERROR no method named `foo` found
9 }
10
11 fn main() {}