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