2018-12-28 17:11:13 -06:00
|
|
|
// revisions: old re
|
|
|
|
|
|
|
|
#![cfg_attr(re, feature(re_rebalance_coherence))]
|
2015-02-17 06:48:32 -06:00
|
|
|
#![feature(optin_builtin_traits)]
|
2017-03-17 13:16:29 -05:00
|
|
|
#![feature(overlapping_marker_traits)]
|
2015-02-17 06:48:32 -06:00
|
|
|
|
2015-03-06 14:55:30 -06:00
|
|
|
use std::marker::Copy;
|
2015-01-14 18:40:33 -06:00
|
|
|
|
|
|
|
enum TestE {
|
|
|
|
A
|
|
|
|
}
|
|
|
|
|
|
|
|
struct MyType;
|
|
|
|
|
2015-02-17 06:48:32 -06:00
|
|
|
struct NotSync;
|
|
|
|
impl !Sync for NotSync {}
|
|
|
|
|
2015-01-14 18:40:33 -06:00
|
|
|
unsafe impl Send for TestE {}
|
|
|
|
unsafe impl Send for MyType {}
|
|
|
|
unsafe impl Send for (MyType, MyType) {}
|
2018-12-28 17:11:13 -06:00
|
|
|
//[old]~^ ERROR E0117
|
|
|
|
//[re]~^^ ERROR E0117
|
2015-01-14 18:40:33 -06:00
|
|
|
|
2015-02-17 06:48:32 -06:00
|
|
|
unsafe impl Send for &'static NotSync {}
|
2018-12-28 17:11:13 -06:00
|
|
|
//[old]~^ ERROR E0321
|
|
|
|
//[re]~^^ ERROR E0321
|
2015-01-14 18:40:33 -06:00
|
|
|
|
|
|
|
unsafe impl Send for [MyType] {}
|
2018-12-28 17:11:13 -06:00
|
|
|
//[old]~^ ERROR E0117
|
|
|
|
//[re]~^^ ERROR E0117
|
2015-01-14 18:40:33 -06:00
|
|
|
|
2015-02-17 06:48:32 -06:00
|
|
|
unsafe impl Send for &'static [NotSync] {}
|
2018-12-28 17:11:13 -06:00
|
|
|
//[old]~^ ERROR E0117
|
|
|
|
//[re]~^^ ERROR E0117
|
2015-01-14 18:40:33 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|