diff options
| author | bors <bors@rust-lang.org> | 2013-05-17 15:52:25 -0700 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-17 15:52:25 -0700 | 
| commit | 2d28d645422c1617be58c8ca7ad9a457264ca850 (patch) | |
| tree | 7893c3ba04e213e63b4165b2335f9b093dbad08b /src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs | |
| parent | c34c5051a5f42726d34dd09b7bf0ae120800a2d4 (diff) | |
| parent | 7a2afb72884774f8e7865c625efc806fd09e693b (diff) | |
| download | rust-2d28d645422c1617be58c8ca7ad9a457264ca850.tar.gz rust-2d28d645422c1617be58c8ca7ad9a457264ca850.zip | |
auto merge of #6569 : Kimundi/rust/ext-bytes, r=erickt
Also snug in some cosmetic changes in num.rs that aren't really important enough for an separate pr.
Diffstat (limited to 'src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs')
| -rw-r--r-- | src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs b/src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs new file mode 100644 index 00000000000..cec2dc0a8e0 --- /dev/null +++ b/src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs @@ -0,0 +1,13 @@ +// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +fn main() { + let vec = bytes!(-1024); //~ ERROR Non-literal in bytes +} | 
