Sign in
android
/
toolchain
/
rustc
/
refs/heads/upstream-master
/
.
/
src
/
test
/
ui
/
const-generics
/
issues
/
issue-61432.rs
blob: 832095ce542062b89c2d76fd8332bfb7eae21950 [
file
] [
log
] [
blame
]
// run-pass
#![
feature
(
const_generics
)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
fn
promote
<
const
N
:
i32
>()
{
// works:
//
// let n = N;
// &n;
&
N
;
}
fn
main
()
{
promote
::<
0
>();
}