summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-65284-suggest-generic-trait-bound.rs
blob: 018ce0459fd6f21794251af2a8bf3aab56bf31f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
trait Foo {
    fn foo(&self);
}

trait Bar {}

fn do_stuff<T : Bar>(t : T) {
    t.foo() //~ ERROR no method named `foo` found
}

fn main() {}