]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-size_of-cycle.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[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() {}