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

error: aborting due to previous error

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