mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-28 06:28:39 +00:00
13 lines
167 B
Rust
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);
|
|
}
|