rust/src/test/ui/traits/static-method-generic-infer...

15 lines
452 B
Plaintext

error[E0283]: type annotations needed
--> $DIR/static-method-generic-inference.rs:24:25
|
LL | fn new() -> T;
| -------------- required by `HasNew::new`
...
LL | let _f: base::Foo = base::HasNew::new();
| ^^^^^^^^^^^^^^^^^ cannot infer type
|
= note: cannot satisfy `_: HasNew<Foo>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0283`.