summaryrefslogtreecommitdiffstats
path: root/tests/ui/lexer/lex-bad-char-literals-3.rs
blob: 5194ff4d9354f2dc744cf22b1f57f7c040a9c1d1 (plain)
1
2
3
4
5
6
7
static c: char = '●●';
//~^ ERROR: character literal may only contain one codepoint

fn main() {
    let ch: &str = '●●';
    //~^ ERROR: character literal may only contain one codepoint
}