X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fcompile-fail%2Fenum-discrim-too-small.rs;h=cdf7d026d5eebd4b26039d7b9508496c51b8aad4;hb=82dcec7ee4a8a71fdfb8e8771ae6785261ec1d5b;hp=2de50ad1d1d0d4f887bcc037b2b120cc737fabba;hpb=b2f62acaebbe2aa0962c0402d467310b2571ff4e;p=rust.git diff --git a/src/test/compile-fail/enum-discrim-too-small.rs b/src/test/compile-fail/enum-discrim-too-small.rs index 2de50ad1d1d..cdf7d026d5e 100644 --- a/src/test/compile-fail/enum-discrim-too-small.rs +++ b/src/test/compile-fail/enum-discrim-too-small.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(negate_unsigned)] + #[repr(u8)] //~ NOTE discriminant type specified here enum Eu8 { Au8 = 23, @@ -53,6 +55,6 @@ enum Ei32 { // u64 currently allows negative numbers, and i64 allows numbers greater than `1<<63`. This is a // little counterintuitive, but since the discriminant can store all the bits, and extracting it // with a cast requires specifying the signedness, there is no loss of information in those cases. -// This also applies to int and uint on 64-bit targets. +// This also applies to isize and usize on 64-bit targets. pub fn main() { }