rust/tests/ui/rfcs/rfc-2632-const-trait-impl/function-pointer-does-not-require-const.rs
2023-06-05 16:09:46 +00:00

16 lines
207 B
Rust

// check-pass
#![feature(const_trait_impl)]
#[const_trait]
pub trait Test {}
impl Test for () {}
pub const fn test<T: ~const Test>() {}
pub const fn min_by_i32() -> fn() {
test::<()>
}
fn main() {}