rust/src/test/ui/traits/overlap-permitted-for-marker-traits-neg.rs
2019-07-27 18:56:16 +03:00

13 lines
253 B
Rust

// run-pass
#![allow(dead_code)]
#![feature(overlapping_marker_traits)]
#![feature(optin_builtin_traits)]
// Overlapping negative impls for `MyStruct` are permitted:
struct MyStruct;
impl !Send for MyStruct {}
impl !Send for MyStruct {}
fn main() {
}