rust/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/infer-fallback.rs

14 lines
207 B
Rust

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