Sign in
android
/
toolchain
/
rustc
/
fc8a4ff31fec5a822fe5eb0da3a6f87866072960
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
pub_const_err_bin.rs
blob: 82eae25121e418a0e9d0aa2d17b4957e283782ff [
file
] [
log
] [
blame
]
// check-pass
#![
warn
(
const_err
)]
pub
const
Z
:
u32
=
0
-
1
;
//~^ WARN any use of this value will cause an error
//~| WARN this was previously accepted by the compiler but is being phased out
pub
type
Foo
=
[
i32
;
0
-
1
];
fn
main
()
{}