mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
2ffb0de8cf
They pass fine. Only tests that required `extern crate rustc_*` or were marked `ignore-stage1` have been keep in fulldeps.
14 lines
209 B
Rust
14 lines
209 B
Rust
#![crate_type="lib"]
|
|
|
|
enum E { E0 = 0, E1 = 1 }
|
|
const E0_U8: u8 = E::E0 as u8;
|
|
const E1_U8: u8 = E::E1 as u8;
|
|
|
|
pub fn go<T>() {
|
|
match 0 {
|
|
E0_U8 => (),
|
|
E1_U8 => (),
|
|
_ => (),
|
|
}
|
|
}
|