]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/type_not_in_scope.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / const-generics / type_not_in_scope.rs
1 impl X {
2 //~^ ERROR cannot find type
3 fn getn<const N: usize>() -> [u8; N] {
4 getn::<N>()
5 }
6 }
7 fn getn<const N: cfg_attr>() -> [u8; N] {}
8 //~^ ERROR expected type, found built-in attribute `cfg_attr`
9 //~| ERROR mismatched types
10
11 fn main() {}