diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2014-06-06 16:04:04 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2014-06-17 23:41:03 +0200 |
| commit | bccdba02960b3cd428addbc2c856065ebb81eb04 (patch) | |
| tree | 09c67823ea70b74b18af5ba2470b337968d758aa /src/libsyntax/ext/concat.rs | |
| parent | 2fd618e77accd37426819952ad443e50bb3c9015 (diff) | |
| download | rust-bccdba02960b3cd428addbc2c856065ebb81eb04.tar.gz rust-bccdba02960b3cd428addbc2c856065ebb81eb04.zip | |
Add a b'x' byte literal of type u8.
Diffstat (limited to 'src/libsyntax/ext/concat.rs')
| -rw-r--r-- | src/libsyntax/ext/concat.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ext/concat.rs b/src/libsyntax/ext/concat.rs index 83f45ca9f16..670e38327d6 100644 --- a/src/libsyntax/ext/concat.rs +++ b/src/libsyntax/ext/concat.rs @@ -47,6 +47,7 @@ pub fn expand_syntax_ext(cx: &mut base::ExtCtxt, ast::LitBool(b) => { accumulator.push_str(format!("{}", b).as_slice()); } + ast::LitByte(..) | ast::LitBinary(..) => { cx.span_err(e.span, "cannot concatenate a binary literal"); } |
