rust/tests/ui/bare-static-string.rs
2023-01-11 09:32:08 +00:00

7 lines
87 B
Rust

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