rust-clippy/clippy_tests/examples/char_lit_as_u8.rs

9 lines
130 B
Rust
Raw Normal View History

#![feature(plugin)]
#![plugin(clippy)]
#![warn(char_lit_as_u8)]
#![allow(unused_variables)]
fn main() {
2017-02-08 13:58:07 +00:00
let c = 'a' as u8;
}