Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
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
];