2023-05-18 17:44:14 -05:00
|
|
|
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 | | "#,
|
2024-05-12 02:40:59 -05:00
|
|
|
| |__- unexpected argument #2 of type `&'static str`
|
2023-05-18 17:44:14 -05:00
|
|
|
LL | r#""#,
|
2024-05-12 02:40:59 -05:00
|
|
|
| ----- unexpected argument #3 of type `&'static str`
|
2023-05-18 17:44:14 -05:00
|
|
|
|
|
|
|
|
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 */,
|
|
|
|
|
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-05-18 17:44:14 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0061`.
|