From 140ba610e490c356bfbe982e62bf686232e5f394 Mon Sep 17 00:00:00 2001 From: togami2864 Date: Fri, 26 Nov 2021 18:34:07 +0900 Subject: [PATCH] add test suit --- tests/ui/unicode.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/ui/unicode.rs b/tests/ui/unicode.rs index 1f596c312fe..e0a4eadce33 100644 --- a/tests/ui/unicode.rs +++ b/tests/ui/unicode.rs @@ -20,8 +20,16 @@ fn uni() { print!("\u{DC}ben!"); // this is ok } +// issue 8013 +#[warn(clippy::non_ascii_literal)] +fn single_quote() { + const _EMPTY_BLOCK: char = '▱'; + const _FULL_BLOCK: char = '▰'; +} + fn main() { zero(); uni(); canon(); + single_quote(); }