fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
879 B31 linesraw
1error[E0061]: this function takes 1 argument but 3 arguments were supplied
2  --> $DIR/issue-109854.rs:2:5
3   |
4LL |       String::with_capacity(
5   |       ^^^^^^^^^^^^^^^^^^^^^
6...
7LL | /     r#"
8LL | | pub(crate) struct Person<T: Clone> {}
9LL | | "#,
10   | |__- unexpected argument of type `&'static str`
11LL |        r#""#,
12   |        ----- unexpected argument of type `&'static str`
13   |
14note: expected `usize`, found fn item
15  --> $DIR/issue-109854.rs:4:5
16   |
17LL |     generate_setter,
18   |     ^^^^^^^^^^^^^^^
19   = note: expected type `usize`
20           found fn item `fn() {generate_setter}`
21note: associated function defined here
22  --> $SRC_DIR/alloc/src/string.rs:LL:COL
23help: remove the extra arguments
24   |
25LL -     generate_setter,
26LL +     /* usize */,
27   |
28
29error: aborting due to previous error
30
31For more information about this error, try `rustc --explain E0061`.