]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/static-method-generic-inference.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.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`.