]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/static-method-generic-inference.stderr
Rollup merge of #82260 - ojeda:rustc-argfile, r=jyn514
[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 |         fn new() -> T;
5    |         -------------- required by `HasNew::new`
6 ...
7 LL |     let _f: base::Foo = base::HasNew::new();
8    |                         ^^^^^^^^^^^^^^^^^ cannot infer type
9    |
10    = note: cannot satisfy `_: HasNew<Foo>`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0283`.