summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/type_not_in_scope.rs
blob: 5933701808b3ef1418f54d413eff491e3203c9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
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`
//~| ERROR mismatched types

fn main() {}