mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-01 08:53:29 +00:00
14 lines
248 B
Rust
14 lines
248 B
Rust
//@ check-pass
|
|
|
|
#![feature(const_trait_impl, const_destruct, const_clone)]
|
|
|
|
use std::marker::Destruct;
|
|
|
|
const fn f<T, F: [const] Fn(&T) -> T + [const] Destruct>(_: F) {}
|
|
|
|
const fn g<T: [const] Clone>() {
|
|
f(<T as Clone>::clone);
|
|
}
|
|
|
|
fn main() {}
|