blob: b68afb0bc83465753b62b5b49a3399d15b86c833 (
plain)
1
2
3
4
5
|
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() {}
|