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

error: aborting due to previous error

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