about summary refs log tree commit diff
path: root/src/test/pretty/trait-safety.rs
blob: b2f2d610c31228c2de294f5726420c417f58b976 (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() { }