]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-block-non-item-statement-rpass.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-block-non-item-statement-rpass.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 #[repr(u8)]
5 enum Foo {
6     Bar = { let x = 1; 3 }
7 }
8
9 pub fn main() {
10     assert_eq!(3, Foo::Bar as u8);
11 }