rust/tests/ui/char_lit_as_u8.rs
2019-09-04 08:50:55 -04:00

6 lines
124 B
Rust

#![warn(clippy::char_lit_as_u8)]
fn main() {
let _ = '❤' as u8; // no suggestion, since a byte literal won't work.
}