blob: 82c27b37573ada2e2175f016ce8107260254fdaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// build-pass
// Check that the evaluation of const-functions with
// zero-sized types as arguments compiles successfully
struct Zst {}
const fn foo(val: Zst) -> Zst { val }
const FOO: Zst = foo(Zst {});
fn main() {
const _: Zst = FOO;
}
|