rust/tests/ui/consts/const-byte-str-cast.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
169 B
Rust
Raw Normal View History

// run-pass
#[deny(warnings)]
pub fn main() {
let _ = b"x" as &[u8];
let _ = b"y" as &[u8; 1];
let _ = b"z" as *const u8;
let _ = "ä" as *const str;
}