]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/concat.rs
Rollup merge of #104422 - compiler-errors:fix-suggest_associated_call_syntax, r=BoxyUwU
[rust.git] / compiler / rustc_builtin_macros / src / concat.rs
index 41f4e8c234d5adc004c8a44710e238fb89494cdd..01454d0e98e699cc14096654cc5c50ebd780f0d9 100644 (file)
@@ -43,6 +43,9 @@ pub fn expand_concat(
                     has_errors = true;
                 }
             },
+            ast::ExprKind::IncludedBytes(..) => {
+                cx.span_err(e.span, "cannot concatenate a byte string literal")
+            }
             ast::ExprKind::Err => {
                 has_errors = true;
             }