X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fchar_lit_as_u8.rs;h=0a53a3d6490a3d8ade83eb4de080af0da6fc31ba;hb=4ea246b0b353daf6ea87e20cfbe51abe90875b21;hp=663962afeaef491a77af6b663be5636a0e2ab29d;hpb=743e9e356115721ced5dce2cfc0c398c6d107cdc;p=rust.git diff --git a/tests/ui/char_lit_as_u8.rs b/tests/ui/char_lit_as_u8.rs index 663962afeae..0a53a3d6490 100644 --- a/tests/ui/char_lit_as_u8.rs +++ b/tests/ui/char_lit_as_u8.rs @@ -1,14 +1,5 @@ -// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - #![warn(clippy::char_lit_as_u8)] -#![allow(unused_variables)] + fn main() { - let c = 'a' as u8; + let _ = '❤' as u8; // no suggestion, since a byte literal won't work. }