summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/phantom_data.rs
blob: 89e76aeb5eb60bcd43751821cc48821e3fc5b83f (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-w" }
#[lang = "phantom_data"]
struct PhantomData<T>;

trait Hash {
    fn hash<H>(&self, state: &mut H);
}

impl<T> Hash for PhantomData<T> {
    fn hash<H>(&self, state: &mut H) {}
}