summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/concat.rs
blob: d7ab7d62625d7631c9f9129fb47de3e843e05233 (plain)
1
2
3
4
5
6
fn main() {
    concat!(b'f');  //~ ERROR: cannot concatenate a byte string literal
    concat!(b"foo");  //~ ERROR: cannot concatenate a byte string literal
    concat!(foo);   //~ ERROR: expected a literal
    concat!(foo()); //~ ERROR: expected a literal
}