Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
pub_const_err.rs
blob: ad165d40a76f27b8e45ee6a88a12f70d24cb8676 [
file
] [
log
] [
blame
]
// 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
];