rust/src/test/ui/traits/trait-static-method-generic-inference.stderr

13 lines
443 B
Plaintext
Raw Normal View History

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
|
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`.