]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53251.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-53251.stderr
1 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
2   --> $DIR/issue-53251.rs:11:20
3    |
4 LL |                 S::f::<i64>();
5    |                    ^------- help: remove these generics
6    |                    |
7    |                    expected 0 generic arguments
8 ...
9 LL | impl_add!(a b);
10    | -------------- in this macro invocation
11    |
12 note: associated function defined here, with 0 generic parameters
13   --> $DIR/issue-53251.rs:4:8
14    |
15 LL |     fn f() {}
16    |        ^
17    = note: this error originates in the macro `impl_add` (in Nightly builds, run with -Z macro-backtrace for more info)
18
19 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
20   --> $DIR/issue-53251.rs:11:20
21    |
22 LL |                 S::f::<i64>();
23    |                    ^------- help: remove these generics
24    |                    |
25    |                    expected 0 generic arguments
26 ...
27 LL | impl_add!(a b);
28    | -------------- in this macro invocation
29    |
30 note: associated function defined here, with 0 generic parameters
31   --> $DIR/issue-53251.rs:4:8
32    |
33 LL |     fn f() {}
34    |        ^
35    = note: this error originates in the macro `impl_add` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0107`.