fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0107]: associated function takes 0 generic arguments but 1 generic argument was supplied 2 --> $DIR/issue-89064.rs:17:16 3 | 4LL | let _ = A::foo::<S>(); 5 | ^^^ expected 0 generic arguments 6 | 7note: associated function defined here, with 0 generic parameters 8 --> $DIR/issue-89064.rs:4:8 9 | 10LL | fn foo() {} 11 | ^^^ 12help: consider moving this generic argument to the `A` trait, which takes up to 1 argument 13 | 14LL - let _ = A::foo::<S>(); 15LL + let _ = A::<S>::foo(); 16 | 17help: remove these generics 18 | 19LL - let _ = A::foo::<S>(); 20LL + let _ = A::foo(); 21 | 22 23error[E0107]: associated function takes 0 generic arguments but 2 generic arguments were supplied 24 --> $DIR/issue-89064.rs:22:16 25 | 26LL | let _ = B::bar::<S, S>(); 27 | ^^^ expected 0 generic arguments 28 | 29note: associated function defined here, with 0 generic parameters 30 --> $DIR/issue-89064.rs:8:8 31 | 32LL | fn bar() {} 33 | ^^^ 34help: consider moving these generic arguments to the `B` trait, which takes up to 2 arguments 35 | 36LL - let _ = B::bar::<S, S>(); 37LL + let _ = B::<S, S>::bar(); 38 | 39help: remove these generics 40 | 41LL - let _ = B::bar::<S, S>(); 42LL + let _ = B::bar(); 43 | 44 45error[E0107]: associated function takes 0 generic arguments but 1 generic argument was supplied 46 --> $DIR/issue-89064.rs:27:21 47 | 48LL | let _ = A::<S>::foo::<S>(); 49 | ^^^----- help: remove these generics 50 | | 51 | expected 0 generic arguments 52 | 53note: associated function defined here, with 0 generic parameters 54 --> $DIR/issue-89064.rs:4:8 55 | 56LL | fn foo() {} 57 | ^^^ 58 59error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied 60 --> $DIR/issue-89064.rs:31:16 61 | 62LL | let _ = 42.into::<Option<_>>(); 63 | ^^^^ expected 0 generic arguments 64 | 65help: consider moving this generic argument to the `Into` trait, which takes up to 1 argument 66 | 67LL | let _ = Into::<Option<_>>::into(42); 68 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69help: remove these generics 70 | 71LL - let _ = 42.into::<Option<_>>(); 72LL + let _ = 42.into(); 73 | 74 75error: aborting due to 4 previous errors 76 77For more information about this error, try `rustc --explain E0107`.