You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code uses c |= 0x1_0000_u32 where it should use c += 0x1_0000_u32.
Test case:
use std::str;fnmain(){let a = "\U00020000";let b = a.to_utf16();let c = str::from_utf16(b);println!("{:?}", a);println!("{:?}", b);println!("{:?}", c)}