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