2020-01-09 04:56:38 -06:00
|
|
|
#![feature(negative_impls)]
|
2015-03-06 14:55:30 -06:00
|
|
|
|
|
|
|
use std::marker::Copy;
|
|
|
|
|
|
|
|
enum TestE {
|
|
|
|
A
|
|
|
|
}
|
|
|
|
|
|
|
|
struct MyType;
|
|
|
|
|
|
|
|
struct NotSync;
|
|
|
|
impl !Sync for NotSync {}
|
|
|
|
|
2018-12-28 17:11:13 -06:00
|
|
|
impl Sized for TestE {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0322
|
2018-12-28 17:11:13 -06:00
|
|
|
|
|
|
|
impl Sized for MyType {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0322
|
2018-12-28 17:11:13 -06:00
|
|
|
|
|
|
|
impl Sized for (MyType, MyType) {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0322
|
|
|
|
//~| ERROR E0117
|
2018-12-28 17:11:13 -06:00
|
|
|
|
|
|
|
impl Sized for &'static NotSync {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0322
|
2018-12-28 17:11:13 -06:00
|
|
|
|
|
|
|
impl Sized for [MyType] {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0322
|
|
|
|
//~| ERROR E0117
|
2018-12-28 17:11:13 -06:00
|
|
|
|
|
|
|
impl Sized for &'static [NotSync] {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0322
|
|
|
|
//~| ERROR E0117
|
2015-03-06 14:55:30 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|