2018-09-06 07:41:12 -05:00
|
|
|
// run-pass
|
2020-09-27 19:00:00 -05:00
|
|
|
#![allow(dead_code, unused)]
|
2018-09-06 07:41:12 -05:00
|
|
|
|
2018-12-30 12:20:53 -06:00
|
|
|
#[repr(u8)]
|
2018-03-27 14:16:37 -05:00
|
|
|
enum Foo {
|
|
|
|
Bar = { let x = 1; 3 }
|
|
|
|
}
|
|
|
|
|
2018-12-30 12:20:53 -06:00
|
|
|
pub fn main() {
|
|
|
|
assert_eq!(3, Foo::Bar as u8);
|
|
|
|
}
|