summaryrefslogtreecommitdiffstats
path: root/tests/pretty/trait-safety.rs
blob: c4ae7606946badce71e41784f8afd4ca3b6ef754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// pp-exact

unsafe trait UnsafeTrait {
    fn foo(&self);
}

unsafe impl UnsafeTrait for isize {
    fn foo(&self) {}
}

pub unsafe trait PubUnsafeTrait {
    fn foo(&self);
}

fn main() {}