about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/ice-123664-unexpected-bound-var.rs
blob: f1dbd947161717cc9de66e60cbb486e21bf335bf (plain)
1
2
3
4
5
6
7
8
#![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() {}