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

12 lines
142 B
Rust
Raw Normal View History

2023-08-13 04:02:31 -05:00
// check-pass
#![feature(const_trait_impl, effects)]
const fn a() {}
fn foo<F: FnOnce()>(a: F) {}
fn main() {
let _ = a;
foo(a);
}