summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-24589.rs
blob: 6b03e14f961ee30ea33512032cf48ce3575f8a2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
pub struct _X([u8]);

impl std::ops::Deref for _X {
    type Target = [u8];

    fn deref(&self) -> &[u8] {
        &self.0
    }
}

pub fn _g(x: &_X) -> &[u8] {
    x
}

fn main() {
}