2019-10-29 17:28:39 -07:00
|
|
|
error[E0283]: type annotations needed
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trait-static-method-generic-inference.rs:24:25
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn new() -> T;
|
2020-09-02 10:40:56 +03:00
|
|
|
| -------------- required by `HasNew::new`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | let _f: base::Foo = base::HasNew::new();
|
2019-10-29 17:28:39 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^ cannot infer type
|
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: cannot satisfy `_: HasNew<Foo>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|