Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
consts
/
const-fn-zst-args.rs
blob: 82c27b37573ada2e2175f016ce8107260254fdaa [
file
] [
log
] [
blame
]
// 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
;
}