summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-size_of-cycle.rs
blob: 1f56c8bd8e65842afa1843feb10f64ee87d6292e (plain)
1
2
3
4
5
6
7
// error-pattern: cycle detected

struct Foo {
    bytes: [u8; std::mem::size_of::<Foo>()]
}

fn main() {}