]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/str-as-char.fixed
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / inference / str-as-char.fixed
1 // When a char literal is used where a str should be,
2 // suggest changing to double quotes.
3
4 // run-rustfix
5
6 fn main() {
7     let _: &str = "a"; //~ ERROR mismatched types
8 }