mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
test: Add a test case for bare static strings
This commit is contained in:
parent
4e60d7e3a6
commit
aa4683c181
5
src/test/run-pass/bare-static-string.rs
Normal file
5
src/test/run-pass/bare-static-string.rs
Normal file
@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
let x: &static/str = "foo";
|
||||
io::println(x);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user