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