summary refs log tree commit diff
path: root/src/test/ui/const-generics/const-param-shadowing.rs
blob: 8440e47968e9aea21a91ae4a465600d6be346565 (plain)
1
2
3
4
5
6
7
8
9
#![feature(min_const_generics)]

type N = u32;
struct Foo<const M: usize>;
fn test<const N: usize>() -> Foo<N> { //~ ERROR type provided when
    Foo
}

fn main() {}