summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-47814.rs
blob: 90e8a3bc2f2f4b36d5d53032d3fb2e4b12676b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct ArpIPv4<'a> {
    s: &'a u8
}

impl<'a> ArpIPv4<'a> {
    const LENGTH: usize = 20;

    pub fn to_buffer() -> [u8; Self::LENGTH] { //~ ERROR generic `Self` types are currently not permitted in anonymous constants
        unimplemented!()
    }
}

pub fn main() {}