rust/src/test/ui/coherence/coherence-negative-impls-safe.rs

11 lines
142 B
Rust
Raw Normal View History

2015-01-10 09:40:17 +00:00
#![feature(optin_builtin_traits)]
use std::marker::Send;
struct TestType;
unsafe impl !Send for TestType {}
//~^ ERROR E0198
2015-01-10 09:40:17 +00:00
fn main() {}