rust/test/strings.rs
2016-03-18 23:20:59 -06:00

18 lines
261 B
Rust
Executable File

#![feature(custom_attribute)]
#![allow(dead_code, unused_attributes)]
#[miri_run]
fn empty() -> &'static str {
""
}
#[miri_run]
fn hello() -> &'static str {
"Hello, world!"
}
#[miri_run]
fn hello_bytes() -> &'static [u8; 13] {
b"Hello, world!"
}