1 #![feature(concat_bytes)]
4 concat_bytes!(pie); //~ ERROR expected a byte literal
5 concat_bytes!(pie, pie); //~ ERROR expected a byte literal
6 concat_bytes!("tnrsi", "tnri"); //~ ERROR cannot concatenate string literals
7 concat_bytes!(2.8); //~ ERROR cannot concatenate float literals
8 concat_bytes!(300); //~ ERROR cannot concatenate numeric literals
9 concat_bytes!('a'); //~ ERROR cannot concatenate character literals
10 concat_bytes!(true, false); //~ ERROR cannot concatenate boolean literals
11 concat_bytes!(42, b"va", b'l'); //~ ERROR cannot concatenate numeric literals
12 concat_bytes!(42, b"va", b'l', [1, 2]); //~ ERROR cannot concatenate numeric literals
14 "hi", //~ ERROR cannot concatenate string literals
17 'a', //~ ERROR cannot concatenate character literals
20 true, //~ ERROR cannot concatenate boolean literals
23 false, //~ ERROR cannot concatenate boolean literals
26 2.6, //~ ERROR cannot concatenate float literals
29 265, //~ ERROR numeric literal is out of bounds
32 -33, //~ ERROR expected a byte literal
35 b"hi!", //~ ERROR cannot concatenate doubly nested array
38 [5, 6, 7], //~ ERROR cannot concatenate doubly nested array
40 concat_bytes!(5u16); //~ ERROR cannot concatenate numeric literals
41 concat_bytes!([5u16]); //~ ERROR numeric literal is not a `u8`
42 concat_bytes!([3; ()]); //~ ERROR repeat count is not a positive number
43 concat_bytes!([3; -2]); //~ ERROR repeat count is not a positive number
44 concat_bytes!([pie; -2]); //~ ERROR repeat count is not a positive number
45 concat_bytes!([pie; 2]); //~ ERROR expected a byte literal
46 concat_bytes!([2.2; 0]); //~ ERROR cannot concatenate float literals
47 concat_bytes!([5.5; ()]); //~ ERROR repeat count is not a positive number
48 concat_bytes!([[1, 2, 3]; 3]); //~ ERROR cannot concatenate doubly nested array
49 concat_bytes!([[42; 2]; 3]); //~ ERROR cannot concatenate doubly nested array