]> git.lizzy.rs Git - rust.git/blob - src/test/ui/str/str-lit-type-mismatch.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[rust.git] / src / test / 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 }