rust/tests/ui/traits/const-traits/function-pointer-does-not-require-const.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

16 lines
208 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() {}