rust/tests/ui/char_lit_as_u8.rs

9 lines
93 B
Rust
Raw Normal View History

2017-09-18 12:47:33 +02:00
#![warn(char_lit_as_u8)]
#![allow(unused_variables)]
fn main() {
2017-02-08 14:58:07 +01:00
let c = 'a' as u8;
}