fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected a byte literal 2 --> $DIR/concat-bytes-error.rs:4:19 3 | 4LL | concat_bytes!(pie); 5 | ^^^ 6 | 7 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()` 8 9error: expected a byte literal 10 --> $DIR/concat-bytes-error.rs:5:19 11 | 12LL | concat_bytes!(pie, pie); 13 | ^^^ ^^^ 14 | 15 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()` 16 17error: cannot concatenate string literals 18 --> $DIR/concat-bytes-error.rs:6:19 19 | 20LL | concat_bytes!("tnrsi", "tnri"); 21 | ^^^^^^^ help: try using a byte string: `b"tnrsi"` 22 23error: cannot concatenate float literals 24 --> $DIR/concat-bytes-error.rs:7:19 25 | 26LL | concat_bytes!(2.8); 27 | ^^^ 28 29error: cannot concatenate numeric literals 30 --> $DIR/concat-bytes-error.rs:8:19 31 | 32LL | concat_bytes!(300); 33 | ^^^ help: try wrapping the number in an array: `[300]` 34 35error: cannot concatenate character literals 36 --> $DIR/concat-bytes-error.rs:9:19 37 | 38LL | concat_bytes!('a'); 39 | ^^^ help: try using a byte character: `b'a'` 40 41error: cannot concatenate boolean literals 42 --> $DIR/concat-bytes-error.rs:10:19 43 | 44LL | concat_bytes!(true, false); 45 | ^^^^ 46 47error: cannot concatenate numeric literals 48 --> $DIR/concat-bytes-error.rs:11:19 49 | 50LL | concat_bytes!(42, b"va", b'l'); 51 | ^^ help: try wrapping the number in an array: `[42]` 52 53error: cannot concatenate numeric literals 54 --> $DIR/concat-bytes-error.rs:12:19 55 | 56LL | concat_bytes!(42, b"va", b'l', [1, 2]); 57 | ^^ help: try wrapping the number in an array: `[42]` 58 59error: cannot concatenate string literals 60 --> $DIR/concat-bytes-error.rs:14:9 61 | 62LL | "hi", 63 | ^^^^ 64 65error: cannot concatenate character literals 66 --> $DIR/concat-bytes-error.rs:17:9 67 | 68LL | 'a', 69 | ^^^ help: try using a byte character: `b'a'` 70 71error: cannot concatenate boolean literals 72 --> $DIR/concat-bytes-error.rs:20:9 73 | 74LL | true, 75 | ^^^^ 76 77error: cannot concatenate boolean literals 78 --> $DIR/concat-bytes-error.rs:23:9 79 | 80LL | false, 81 | ^^^^^ 82 83error: cannot concatenate float literals 84 --> $DIR/concat-bytes-error.rs:26:9 85 | 86LL | 2.6, 87 | ^^^ 88 89error: numeric literal is out of bounds 90 --> $DIR/concat-bytes-error.rs:29:9 91 | 92LL | 265, 93 | ^^^ 94 95error: expected a byte literal 96 --> $DIR/concat-bytes-error.rs:32:9 97 | 98LL | -33, 99 | ^^^ 100 | 101 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()` 102 103error: cannot concatenate doubly nested array 104 --> $DIR/concat-bytes-error.rs:35:9 105 | 106LL | b"hi!", 107 | ^^^^^^ 108 | 109 = note: byte strings are treated as arrays of bytes 110 = help: try flattening the array 111 112error: cannot concatenate doubly nested array 113 --> $DIR/concat-bytes-error.rs:38:9 114 | 115LL | [5, 6, 7], 116 | ^^^^^^^^^ 117 118error: cannot concatenate numeric literals 119 --> $DIR/concat-bytes-error.rs:40:19 120 | 121LL | concat_bytes!(5u16); 122 | ^^^^ help: try wrapping the number in an array: `[5u16]` 123 124error: numeric literal is not a `u8` 125 --> $DIR/concat-bytes-error.rs:41:20 126 | 127LL | concat_bytes!([5u16]); 128 | ^^^^ 129 130error: repeat count is not a positive number 131 --> $DIR/concat-bytes-error.rs:42:23 132 | 133LL | concat_bytes!([3; ()]); 134 | ^^ 135 136error: repeat count is not a positive number 137 --> $DIR/concat-bytes-error.rs:43:23 138 | 139LL | concat_bytes!([3; -2]); 140 | ^^ 141 142error: repeat count is not a positive number 143 --> $DIR/concat-bytes-error.rs:44:25 144 | 145LL | concat_bytes!([pie; -2]); 146 | ^^ 147 148error: expected a byte literal 149 --> $DIR/concat-bytes-error.rs:45:20 150 | 151LL | concat_bytes!([pie; 2]); 152 | ^^^ 153 | 154 = note: only byte literals (like `b"foo"`, `b's'` and `[3, 4, 5]`) can be passed to `concat_bytes!()` 155 156error: cannot concatenate float literals 157 --> $DIR/concat-bytes-error.rs:46:20 158 | 159LL | concat_bytes!([2.2; 0]); 160 | ^^^ 161 162error: repeat count is not a positive number 163 --> $DIR/concat-bytes-error.rs:47:25 164 | 165LL | concat_bytes!([5.5; ()]); 166 | ^^ 167 168error: cannot concatenate doubly nested array 169 --> $DIR/concat-bytes-error.rs:48:20 170 | 171LL | concat_bytes!([[1, 2, 3]; 3]); 172 | ^^^^^^^^^ 173 174error: cannot concatenate doubly nested array 175 --> $DIR/concat-bytes-error.rs:49:20 176 | 177LL | concat_bytes!([[42; 2]; 3]); 178 | ^^^^^^^ 179 180error: aborting due to 28 previous errors 181