summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-109854.stderr
blob: 621a3897165b812fac5e31e7702323672726d65f (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
error[E0061]: this function takes 1 argument but 3 arguments were supplied
  --> $DIR/issue-109854.rs:2:5
   |
LL |       String::with_capacity(
   |       ^^^^^^^^^^^^^^^^^^^^^
...
LL | /     r#"
LL | | pub(crate) struct Person<T: Clone> {}
LL | | "#,
   | |__- unexpected argument of type `&'static str`
LL |        r#""#,
   |        ----- unexpected argument of type `&'static str`
   |
note: expected `usize`, found fn item
  --> $DIR/issue-109854.rs:4:5
   |
LL |     generate_setter,
   |     ^^^^^^^^^^^^^^^
   = note: expected type `usize`
           found fn item `fn() {generate_setter}`
note: associated function defined here
  --> $SRC_DIR/alloc/src/string.rs:LL:COL
help: remove the extra arguments
   |
LL -     generate_setter,
LL +     /* usize */,
   |

error: aborting due to previous error

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