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