]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lexer/lex-bad-char-literals-3.rs
Auto merge of #102169 - scottmcm:constify-some-conditions, r=thomcc
[rust.git] / src / test / ui / lexer / lex-bad-char-literals-3.rs
1 static c: char = '●●';
2 //~^ ERROR: character literal may only contain one codepoint
3
4 fn main() {
5     let ch: &str = '●●';
6     //~^ ERROR: character literal may only contain one codepoint
7 }