Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
ice-118285-fn-ptr-value.rs
blob: b68afb0bc83465753b62b5b49a3399d15b86c833 [
file
] [
log
] [
blame
] [
edit
]
struct
Checked
<
const
F
:
fn
(
usize
)
->
bool
>;
//~^ ERROR function pointers as const generic parameters is forbidden
fn
not_one
(
val
:
usize
)
->
bool
{
val
!=
1
}
const
_
:
Checked
<
not_one
>
=
Checked
::<
not_one
>;
fn
main
()
{}