about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-08-14 20:29:48 +0300
committerGitHub <noreply@github.com>2016-08-14 20:29:48 +0300
commitb1ec5b2ad23aa4e2e6670f47e270e30945444924 (patch)
tree2043798724016efe8a4ceece407d26f284d95e0f /src
parentc35d8dba7f3594458023fe2afa08d155c8a490b9 (diff)
parent9d6fa40ba181cbb50ff06978f2b7b2905854bed5 (diff)
downloadrust-b1ec5b2ad23aa4e2e6670f47e270e30945444924.tar.gz
rust-b1ec5b2ad23aa4e2e6670f47e270e30945444924.zip
Rollup merge of #35533 - frewsxcv:22984, r=brson
Add regression test for #22894.

None
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/issue-22894.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-22894.rs b/src/test/run-pass/issue-22894.rs
new file mode 100644
index 00000000000..8acd88deef2
--- /dev/null
+++ b/src/test/run-pass/issue-22894.rs
@@ -0,0 +1,13 @@
+// Copyright 2016 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.
+
+#[allow(dead_code)]
+static X: &'static str = &*"";
+fn main() {}