2020-11-22 19:54:31 -08:00
|
|
|
#![feature(auto_traits)]
|
2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2015-01-27 01:07:31 +01:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
auto trait MySafeTrait {}
|
2015-01-27 01:07:31 +01:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
struct Foo;
|
2015-03-11 18:53:55 -05:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
unsafe impl MySafeTrait for Foo {}
|
2019-10-26 17:28:02 +02:00
|
|
|
//~^ ERROR E0199
|
2015-03-11 18:53:55 -05:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
unsafe auto trait MyUnsafeTrait {}
|
2015-03-11 18:53:55 -05:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
impl MyUnsafeTrait for Foo {}
|
2019-10-26 17:28:02 +02:00
|
|
|
//~^ ERROR E0200
|
2015-03-11 18:53:55 -05:00
|
|
|
|
2015-01-27 01:07:31 +01:00
|
|
|
fn main() {}
|