rust/tests/ui/bare-static-string.rs
2024-02-16 20:02:50 +00:00

7 lines
88 B
Rust

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