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