2021-01-29 11:54:19 +05:30
|
|
|
fn main() {
|
2021-02-14 10:08:37 +05:30
|
|
|
// should hint to create an inline `const` block
|
|
|
|
// or to create a new `const` item
|
2021-01-29 11:54:19 +05:30
|
|
|
let strings: [String; 5] = [String::new(); 5];
|
|
|
|
//~^ ERROR the trait bound `String: Copy` is not satisfied
|
|
|
|
println!("{:?}", strings);
|
|
|
|
}
|