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