2018-08-08 14:28:26 +02:00
|
|
|
error[E0283]: type annotations required: cannot resolve `_: base::HasNew<base::Foo>`
|
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
|
|
|
|
|
|
|
|
LL | let _f: base::Foo = base::HasNew::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: required by `base::HasNew::new`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trait-static-method-generic-inference.rs:8:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | fn new() -> T;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|