]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/type_not_in_scope.rs
Move generic error message to separate branches
[rust.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() {}