]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-size_of-cycle.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / consts / const-size_of-cycle.rs
1 // error-pattern: cycle detected
2
3 struct Foo {
4     bytes: [u8; std::mem::size_of::<Foo>()]
5 }
6
7 fn main() {}