2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-23 19:43:20 +00:00
rust-clippy/tests/ui/char_lit_as_u8.rs

6 lines
124 B
Rust
Raw Normal View History

2018-07-28 15:34:52 +00:00
#![warn(clippy::char_lit_as_u8)]
fn main() {
let _ = '❤' as u8; // no suggestion, since a byte literal won't work.
}