Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
const-generics
/
generic_const_exprs
/
from-sig.rs
blob: 28de4f864671d4ec2cc6fdb259bd2768d51acbcb [
file
]
// run-pass
#![
feature
(
generic_const_exprs
)]
#![
allow
(
incomplete_features
)]
struct
Foo
<
const
B
:
bool
>;
fn
test
<
const
N
:
usize
>()
->
Foo
<{
N
>
10
}>
{
Foo
}
fn
main
()
{
let
_
:
Foo
<
true
>
=
test
::<
12
>();
let
_
:
Foo
<
false
>
=
test
::<
9
>();
}