- self.struct_span_err(
- arr.span,
- "this code is interpreted as a block expression, not an array",
- )
- .multipart_suggestion(
- "try using [] instead of {}",
- vec![(lo, "[".to_owned()), (hi, "]".to_owned())],
- Applicability::MaybeIncorrect,
- )
- .note("to define an array, one would use square brackets instead of curly braces")
- .emit();
+ self.struct_span_err(arr.span, "this is a block expression, not an array")
+ .multipart_suggestion(
+ "to make an array, use square brackets instead of curly braces",
+ vec![(lo, "[".to_owned()), (hi, "]".to_owned())],
+ Applicability::MaybeIncorrect,
+ )
+ .emit();