error[E0283]: type annotations needed
--> $DIR/static-method-generic-inference.rs:24:25
|
-LL | fn new() -> T;
- | -------------- required by `HasNew::new`
-...
LL | let _f: base::Foo = base::HasNew::new();
| ^^^^^^^^^^^^^^^^^ cannot infer type
|
= note: cannot satisfy `_: HasNew<Foo>`
+note: required by `HasNew::new`
+ --> $DIR/static-method-generic-inference.rs:8:9
+ |
+LL | fn new() -> T;
+ | ^^^^^^^^^^^^^^
error: aborting due to previous error