RS.CLIPPY.USELESS_CONCAT

Checks that the `concat` macro has at least two arguments

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: useless_concat. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks that the concat! macro has at least two arguments.

Why is this bad?

If there are less than 2 arguments, then calling the macro is doing nothing.

Example

let x = concat!("a");

Use instead:

let x = "a";