]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/static-method-generic-inference.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / traits / static-method-generic-inference.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/static-method-generic-inference.rs:24:25
3    |
4 LL |     let _f: base::Foo = base::HasNew::new();
5    |                         ^^^^^^^^^^^^^^^^^ cannot infer type
6    |
7    = note: cannot satisfy `_: HasNew<Foo>`
8 note: required by `HasNew::new`
9   --> $DIR/static-method-generic-inference.rs:8:9
10    |
11 LL |         fn new() -> T;
12    |         ^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0283`.