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

15 lines
458 B
Text
Raw Normal View History

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
|
LL | fn new() -> T;
| -------------- required by `HasNew::new`
...
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
|
= 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`.