Debian Codegraph @

gcc/testsuite/rust/compile/torture/phantom_data.rs

raw
1 // { dg-options "-w" }
2 #[lang = "sized"]
3 pub trait Sized {}
4
5 #[lang = "phantom_data"]
6 struct PhantomData<T>;
7
8 trait Hash {
9 fn hash<H>(&self, state: &mut H);
10 }
11
12 impl<T> Hash for PhantomData<T> {
13 fn hash<H>(&self, state: &mut H) {}
14 }