mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-09 11:59:05 +00:00
12 lines
142 B
Rust
12 lines
142 B
Rust
// check-pass
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
const fn a() {}
|
|
|
|
fn foo<F: FnOnce()>(a: F) {}
|
|
|
|
fn main() {
|
|
let _ = a;
|
|
foo(a);
|
|
}
|