summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-byte-str-cast.rs
blob: 65d626c297f05345e876cda65ea8316a3d04c166 (plain)
1
2
3
4
5
6
7
8
9
// 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;
}