]>
Commit | Line | Data |
---|---|---|
064997fb | 1 | error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type |
6a06907d | 2 | --> $DIR/static-method-generic-inference.rs:24:25 |
b7449926 | 3 | | |
064997fb FG |
4 | LL | fn new() -> T; |
5 | | -------------- `HasNew::new` defined here | |
6 | ... | |
b7449926 | 7 | LL | let _f: base::Foo = base::HasNew::new(); |
064997fb | 8 | | ^^^^^^^^^^^^^^^^^ cannot call associated function of trait |
60c5eb7d | 9 | | |
064997fb FG |
10 | help: use the fully-qualified path to the only available implementation |
11 | | | |
9c376795 FG |
12 | LL | let _f: base::Foo = <Foo as base::HasNew>::new(); |
13 | | +++++++ + | |
b7449926 | 14 | |
4b012472 | 15 | error: aborting due to 1 previous error |
b7449926 | 16 | |
064997fb | 17 | For more information about this error, try `rustc --explain E0790`. |