]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/str-as-char.stderr
Rollup merge of #92559 - durin42:llvm-14-attributemask, r=nikic
[rust.git] / src / test / ui / inference / str-as-char.stderr
1 error[E0308]: mismatched types
2   --> $DIR/str-as-char.rs:7:19
3    |
4 LL |     let _: &str = 'a';
5    |            ----   ^^^ expected `&str`, found `char`
6    |            |
7    |            expected due to this
8    |
9 help: if you meant to write a `str` literal, use double quotes
10    |
11 LL |     let _: &str = "a";
12    |                   ~~~
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.