1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // When explicit discriminant value has
12 // a type that does not match the representation
13 // type, rustc should fail gracefully.
15 // See also run-pass/discrim-explicit-23030.rs where the input types
18 #![allow(dead_code, unused_variables, unused_imports)]
20 use std
::{i8,u8,i16,u16,i32,u32,i64, u64}
;
29 //~| expected i8, found u8
42 //~| expected u8, found i8
55 //~| expected i16, found u16
68 //~| expected u16, found i16
81 //~| expected i32, found u32
94 //~| expected u32, found i32
107 //~| expected i64, found u64
120 //~| expected u64, found i64