summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-89064.stderr
blob: 93d8da226c817f35f99cd09ca8e9329881d4a47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
  --> $DIR/issue-89064.rs:17:16
   |
LL |     let _ = A::foo::<S>();
   |                ^^^ expected 0 generic arguments
   |
note: associated function defined here, with 0 generic parameters
  --> $DIR/issue-89064.rs:4:8
   |
LL |     fn foo() {}
   |        ^^^
help: consider moving this generic argument to the `A` trait, which takes up to 1 argument
   |
LL -     let _ = A::foo::<S>();
LL +     let _ = A::<S>::foo();
   |
help: remove these generics
   |
LL -     let _ = A::foo::<S>();
LL +     let _ = A::foo();
   |

error[E0107]: this associated function takes 0 generic arguments but 2 generic arguments were supplied
  --> $DIR/issue-89064.rs:22:16
   |
LL |     let _ = B::bar::<S, S>();
   |                ^^^ expected 0 generic arguments
   |
note: associated function defined here, with 0 generic parameters
  --> $DIR/issue-89064.rs:8:8
   |
LL |     fn bar() {}
   |        ^^^
help: consider moving these generic arguments to the `B` trait, which takes up to 2 arguments
   |
LL -     let _ = B::bar::<S, S>();
LL +     let _ = B::<S, S>::bar();
   |
help: remove these generics
   |
LL -     let _ = B::bar::<S, S>();
LL +     let _ = B::bar();
   |

error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
  --> $DIR/issue-89064.rs:27:21
   |
LL |     let _ = A::<S>::foo::<S>();
   |                     ^^^----- help: remove these generics
   |                     |
   |                     expected 0 generic arguments
   |
note: associated function defined here, with 0 generic parameters
  --> $DIR/issue-89064.rs:4:8
   |
LL |     fn foo() {}
   |        ^^^

error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
  --> $DIR/issue-89064.rs:31:16
   |
LL |     let _ = 42.into::<Option<_>>();
   |                ^^^^ expected 0 generic arguments
   |
help: consider moving this generic argument to the `Into` trait, which takes up to 1 argument
   |
LL |     let _ = Into::<Option<_>>::into(42);
   |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: remove these generics
   |
LL -     let _ = 42.into::<Option<_>>();
LL +     let _ = 42.into();
   |

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0107`.