2019-09-24 13:05:49 -05:00
|
|
|
error[E0283]: type annotations needed: cannot resolve `_: base::HasNew<base::Foo>`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trait-static-method-generic-inference.rs:24:25
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | fn new() -> T;
|
|
|
|
| -------------- required by `base::HasNew::new`
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let _f: base::Foo = base::HasNew::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|