summary refs log tree commit diff
path: root/src/test/compile-fail/raw-byte-string-eof.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-06-13 18:56:24 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-06-17 23:43:18 +0200
commitb8a4c1415b154fa1e5bd8bb54e681f0f5e21e2a4 (patch)
tree9a68d3b4eae31521d410062ca5ff9fc7018dc233 /src/test/compile-fail/raw-byte-string-eof.rs
parentd7e01b5809cd600a30bab29da698acb3d1b52409 (diff)
downloadrust-b8a4c1415b154fa1e5bd8bb54e681f0f5e21e2a4.tar.gz
rust-b8a4c1415b154fa1e5bd8bb54e681f0f5e21e2a4.zip
Add br##"xx"## raw byte string literals.
Diffstat (limited to 'src/test/compile-fail/raw-byte-string-eof.rs')
-rw-r--r--src/test/compile-fail/raw-byte-string-eof.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/raw-byte-string-eof.rs b/src/test/compile-fail/raw-byte-string-eof.rs
new file mode 100644
index 00000000000..83ea9db39b7
--- /dev/null
+++ b/src/test/compile-fail/raw-byte-string-eof.rs
@@ -0,0 +1,16 @@
+// Copyright 2014 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.
+
+
+pub fn main() {
+    br##"a"#;  //~ unterminated raw string
+}
+
+