summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/type_not_in_scope.rs
blob: 917abaed15e06e741caa2ec38b389eda67cfa18c (plain)
1
2
3
4
5
6
7
8
9
10
impl X {
    //~^ ERROR cannot find type
    fn getn<const N: usize>() -> [u8; N] {
        getn::<N>()
    }
}
fn getn<const N: cfg_attr>() -> [u8; N] {}
//~^ ERROR expected type, found built-in attribute `cfg_attr`

fn main() {}