]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-89064.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-89064.stderr
CommitLineData
f2b60f7d
FG
1error[E0107]: this 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]: this 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]: this 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]: this associated function 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 |
65note: associated function defined here, with 0 generic parameters
66 --> $SRC_DIR/core/src/convert/mod.rs:LL:COL
67 |
68LL | fn into(self) -> T;
69 | ^^^^
70help: consider moving this generic argument to the `Into` trait, which takes up to 1 argument
71 |
72LL | let _ = Into::<Option<_>>::into(42);
73 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
74help: remove these generics
75 |
76LL - let _ = 42.into::<Option<_>>();
77LL + let _ = 42.into();
78 |
79
80error: aborting due to 4 previous errors
81
82For more information about this error, try `rustc --explain E0107`.