rust/tests/ui/traits/overlap-not-permitted-for-builtin-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
247 B
Rust
Raw Normal View History

#![allow(dead_code)]
#![feature(negative_impls)]
2017-03-30 12:54:28 +00:00
// Overlapping negative impls for `MyStruct` are not permitted:
2017-03-30 12:54:28 +00:00
struct MyStruct;
impl !Send for MyStruct {}
impl !Send for MyStruct {}
//~^ ERROR conflicting implementations of trait
2017-03-30 12:54:28 +00:00
fn main() {}