Skip to content

Commit 9fb3f55

Browse files
committed
Add test for issue-24843
1 parent 7fb5187 commit 9fb3f55

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub static TEST_STR: &'static str = "Hello world";

src/test/ui/static/issue-24843.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// aux-build: issue_24843.rs
2+
// check-pass
3+
4+
extern crate issue_24843;
5+
6+
static _TEST_STR_2: &'static str = &issue_24843::TEST_STR;
7+
8+
fn main() {}

0 commit comments

Comments
 (0)