]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error[E0283]: type annotations needed |
6a06907d | 2 | --> $DIR/static-method-generic-inference.rs:24:25 |
b7449926 XL |
3 | | |
4 | LL | let _f: base::Foo = base::HasNew::new(); | |
60c5eb7d XL |
5 | | ^^^^^^^^^^^^^^^^^ cannot infer type |
6 | | | |
1b1a35ee | 7 | = note: cannot satisfy `_: HasNew<Foo>` |
136023e0 XL |
8 | note: required by `HasNew::new` |
9 | --> $DIR/static-method-generic-inference.rs:8:9 | |
10 | | | |
11 | LL | fn new() -> T; | |
12 | | ^^^^^^^^^^^^^^ | |
b7449926 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0283`. |