summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-77357.rs
blob: 3cb8d3846ab7c62096ece221024c778fe366d6cb (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

trait MyTrait<T> {}

fn bug<'a, T>() -> &'static dyn MyTrait<[(); { |x: &'a u32| { x }; 4 }]> {
    //~^ ERROR overly complex generic constant
    todo!()
}

fn main() {}