fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied 2 --> $DIR/move-generic-to-trait-in-method-with-params.rs:14:7 3 | 4LL | 1.bar::<i32>(0); 5 | ^^^ expected 0 generic arguments 6 | 7note: method defined here, with 0 generic parameters 8 --> $DIR/move-generic-to-trait-in-method-with-params.rs:4:8 9 | 10LL | fn bar(&self, _: T); 11 | ^^^ 12help: consider moving this generic argument to the `Foo` trait, which takes up to 1 argument 13 | 14LL | Foo::<i32>::bar(1, 0); 15 | ~~~~~~~~~~~~~~~~~~~~~ 16help: remove these generics 17 | 18LL - 1.bar::<i32>(0); 19LL + 1.bar(0); 20 | 21 22error: aborting due to previous error 23 24For more information about this error, try `rustc --explain E0107`.