2024-02-16 20:02:50 +00:00

12 lines
143 B
Rust

//@ check-pass
#![feature(const_trait_impl, effects)]
const fn a() {}
fn foo<F: FnOnce()>(a: F) {}
fn main() {
let _ = a;
foo(a);
}