]> git.lizzy.rs Git - rust.git/blob - tests/ui/str/str-lit-type-mismatch.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / str / str-lit-type-mismatch.rs
1 fn main() {
2     let x: &[u8] = "foo"; //~ ERROR mismatched types
3     let y: &[u8; 4] = "baaa"; //~ ERROR mismatched types
4     let z: &str = b"foo"; //~ ERROR mismatched types
5 }