blob: d332c4adb00609d6c3b63de1ba0328ef1f8fd434 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
trait TraitA<T> {
fn func();
}
struct StructA {}
impl TraitA<i32> for StructA {
fn func() {}
}
fn main() {
TraitA::<i32>::func();
//~^ ERROR: cannot call associated function on trait without specifying the corresponding `impl` type [E0790]
//~| help: use the fully-qualified path to the only available implementation
}
|