blob: d950f20c77208cfdf6459ef5a3e42e175b604113 (
plain)
1
2
3
4
5
6
7
8
9
|
//@ run-fail
//@ compile-flags: -Copt-level=3 -Cdebug-assertions=no -Zub-checks=yes
//@ error-pattern: unsafe precondition(s) violated: invalid value for `char`
fn main() {
unsafe {
char::from_u32_unchecked(0xD801);
}
}
|