diff options
Diffstat (limited to 'tests/ui/bare-static-string.rs')
-rw-r--r-- | tests/ui/bare-static-string.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/bare-static-string.rs b/tests/ui/bare-static-string.rs new file mode 100644 index 000000000..d336dc7c6 --- /dev/null +++ b/tests/ui/bare-static-string.rs @@ -0,0 +1,6 @@ +// run-pass + +pub fn main() { + let x: &'static str = "foo"; + println!("{}", x); +} |