2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-01-17 07:33:54 +00:00
rust-clippy/tests/ui/char_lit_as_u8.rs
2019-09-04 08:50:55 -04:00

5 lines
124 B
Rust

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