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