Fix const eval of ZST index operations to make the static assertion work

This commit is contained in:
Oliver Schneider 2018-09-10 17:46:30 +02:00
parent 24dca6aeca
commit d1b5231aa7
2 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,5 @@
// compile-pass
static ASSERT: () = [()][(std::mem::size_of::<u32>() != 4) as usize];
fn main() {}