rust/tests/ui/bare-static-string.rs

7 lines
88 B
Rust

//@ run-pass
pub fn main() {
let x: &'static str = "foo";
println!("{}", x);
}