Skip to content

Commit bf732a1

Browse files
Test u8::is_ascii alongside char::is_ascii
1 parent f6d4720 commit bf732a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/consts/std/char.rs src/test/ui/consts/is_ascii.rs

+6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
static X: bool = 'a'.is_ascii();
44
static Y: bool = 'ä'.is_ascii();
55

6+
static BX: bool = b'a'.is_ascii();
7+
static BY: bool = 192u8.is_ascii();
8+
69
fn main() {
710
assert!(X);
811
assert!(!Y);
12+
13+
assert!(BX);
14+
assert!(!BY);
915
}

0 commit comments

Comments
 (0)