mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
17 lines
244 B
Rust
17 lines
244 B
Rust
#![feature(auto_traits)]
|
|
#![feature(negative_impls)]
|
|
|
|
auto trait MySafeTrait {}
|
|
|
|
struct Foo;
|
|
|
|
unsafe impl MySafeTrait for Foo {}
|
|
//~^ ERROR E0199
|
|
|
|
unsafe auto trait MyUnsafeTrait {}
|
|
|
|
impl MyUnsafeTrait for Foo {}
|
|
//~^ ERROR E0200
|
|
|
|
fn main() {}
|