about summary refs log tree commit diff
path: root/src/test/ui/compile-fail-migration/trait-static-method-generic-inference.stderr
blob: a903bd998f23d0b6d19898bc9c33f68e910bd433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0283]: type annotations required: cannot resolve `_: base::HasNew<base::Foo>`
  --> $DIR/trait-static-method-generic-inference.rs:34:25
   |
LL |     let _f: base::Foo = base::HasNew::new();
   |                         ^^^^^^^^^^^^^^^^^
   |
note: required by `base::HasNew::new`
  --> $DIR/trait-static-method-generic-inference.rs:18:9
   |
LL |         fn new() -> T;
   |         ^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0283`.