]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-shadowing.rs
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / ui / const-generics / const-param-shadowing.rs
1 type N = u32;
2 struct Foo<const M: usize>;
3 fn test<const N: usize>() -> Foo<N> { //~ ERROR type provided when
4     Foo
5 }
6
7 fn main() {}