Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
pub_const_err.rs
blob: 4ff140fee7a71643f2548b2ca0c010624fb8793b [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be check-pass?)
#![
warn
(
const_err
)]
#![
crate_type
=
"lib"
]
pub
const
Z
:
u32
=
0
-
1
;
//~^ WARN any use of this value will cause an error
pub
type
Foo
=
[
i32
;
0
-
1
];