2014-12-09 19:59:20 -05:00
|
|
|
// pp-exact
|
|
|
|
|
|
|
|
unsafe trait UnsafeTrait {
|
|
|
|
fn foo(&self);
|
|
|
|
}
|
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
unsafe impl UnsafeTrait for isize {
|
2021-12-01 11:45:14 -08:00
|
|
|
fn foo(&self) {}
|
2014-12-10 06:15:06 -05:00
|
|
|
}
|
|
|
|
|
2014-12-09 19:59:20 -05:00
|
|
|
pub unsafe trait PubUnsafeTrait {
|
|
|
|
fn foo(&self);
|
|
|
|
}
|
|
|
|
|
2021-12-01 11:45:14 -08:00
|
|
|
fn main() {}
|