rust/tests/ui/char_lit_as_u8.rs

6 lines
124 B
Rust
Raw Normal View History

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