mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
232 B
Rust
13 lines
232 B
Rust
|
fn generate_setter() {
|
||
|
String::with_capacity(
|
||
|
//~^ ERROR this function takes 1 argument but 3 arguments were supplied
|
||
|
generate_setter,
|
||
|
r#"
|
||
|
pub(crate) struct Person<T: Clone> {}
|
||
|
"#,
|
||
|
r#""#,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
fn main() {}
|