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

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

12 lines
188 B
Rust
Raw Normal View History

2023-08-13 09:02:31 +00:00
//@ check-pass
2024-06-21 12:22:29 +00:00
#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete
2023-08-13 09:02:31 +00:00
const fn a() {}
fn foo<F: FnOnce()>(a: F) {}
fn main() {
let _ = a;
foo(a);
}