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/issue-104287.rs:10:5 3 | 4LL | foo::<()>(x); 5 | ^^^------ help: remove these generics 6 | | 7 | expected 0 generic arguments 8 | 9note: method defined here, with 0 generic parameters 10 --> $DIR/issue-104287.rs:6:8 11 | 12LL | fn foo(&self) {} 13 | ^^^ 14 15error[E0425]: cannot find function `foo` in this scope 16 --> $DIR/issue-104287.rs:10:5 17 | 18LL | foo::<()>(x); 19 | ^^^ not found in this scope 20 | 21help: use the `.` operator to call the method `foo` on `&S` 22 | 23LL - foo::<()>(x); 24LL + x.foo(); 25 | 26 27error: aborting due to 2 previous errors 28 29Some errors have detailed explanations: E0107, E0425. 30For more information about an error, try `rustc --explain E0107`.