fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type 2 --> $DIR/static-method-generic-inference.rs:24:25 3 | 4LL | fn new() -> T; 5 | -------------- `HasNew::new` defined here 6... 7LL | let _f: base::Foo = base::HasNew::new(); 8 | ^^^^^^^^^^^^^^^^^ cannot call associated function of trait 9 | 10help: use the fully-qualified path to the only available implementation 11 | 12LL | let _f: base::Foo = <Foo as base::HasNew>::new(); 13 | +++++++ + 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0790`.