]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/str-as-char.rs
Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic
[rust.git] / src / test / ui / inference / str-as-char.rs
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 }