Files
rust/tests/ui/traits/const-traits/effects/infer-fallback.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
207 B
Rust
Raw Normal View History

2023-08-13 09:02:31 +00:00
//@ check-pass
2024-06-30 17:08:45 +00:00
//@ compile-flags: -Znext-solver
#![allow(incomplete_features)]
#![feature(const_trait_impl, effects)]
2023-08-13 09:02:31 +00:00
const fn a() {}
fn foo<F: FnOnce()>(a: F) {}
fn main() {
let _ = a;
foo(a);
}