]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trait_selection/traits/error_reporting/mod.rs
Fix whitespace in `?Sized` structured suggestion
[rust.git] / src / librustc_trait_selection / traits / error_reporting / mod.rs
index 6bd4455e1e3fdbeb0c8a80a237d9eca59215e31a..0d53df3bf4b466ecba0500bc69560e8a7e498df8 100644 (file)
@@ -1655,7 +1655,7 @@ fn suggest_unsized_bound_if_applicable(
                     {
                         let (span, separator) = match param.bounds {
                             [] => (span.shrink_to_hi(), ":"),
-                            [.., bound] => (bound.span().shrink_to_hi(), " + "),
+                            [.., bound] => (bound.span().shrink_to_hi(), " +"),
                         };
                         err.span_suggestion_verbose(
                             span,