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