Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
str
/
str-static-literal.rs
blob: 61630f0f22bdff5a77569cd412ae875c236aa260 [
file
] [
log
] [
blame
]
//! Check that a bare string literal is typed as a `&'static str` and is usable.
//@ run-pass
pub
fn
main
()
{
let
x
:
&
'
static
str
=
"foo"
;
println
!(
"{}"
,
x
);
}