rust/tests/ui/traits/const-traits/effects/infer-fallback.rs
2024-11-03 18:59:31 +00:00

13 lines
167 B
Rust

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