rust/tests/ui/traits/const-traits/ice-123664-unexpected-bound-var.rs
2024-11-03 18:59:31 +00:00

9 lines
279 B
Rust

#![allow(incomplete_features)]
#![feature(generic_const_exprs, const_trait_impl)]
const fn with_positive<F: ~const Fn()>() {}
//~^ ERROR `~const` can only be applied to `#[const_trait]` traits
//~| ERROR `~const` can only be applied to `#[const_trait]` traits
pub fn main() {}