]> git.lizzy.rs Git - rust.git/blob - tests/pretty/trait-safety.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / pretty / trait-safety.rs
1 // pp-exact
2
3 unsafe trait UnsafeTrait {
4     fn foo(&self);
5 }
6
7 unsafe impl UnsafeTrait for isize {
8     fn foo(&self) {}
9 }
10
11 pub unsafe trait PubUnsafeTrait {
12     fn foo(&self);
13 }
14
15 fn main() {}