2015-03-06 14:55:30 -06:00
|
|
|
#![feature(optin_builtin_traits)]
|
|
|
|
|
|
|
|
use std::marker::Copy;
|
|
|
|
|
|
|
|
enum TestE {
|
|
|
|
A
|
|
|
|
}
|
|
|
|
|
|
|
|
struct MyType;
|
|
|
|
|
|
|
|
struct NotSync;
|
|
|
|
impl !Sync for NotSync {}
|
|
|
|
|
|
|
|
impl Sized for TestE {} //~ ERROR E0322
|
2016-08-14 13:57:33 -05:00
|
|
|
//~^ impl of 'Sized' not allowed
|
2015-03-30 16:49:30 -05:00
|
|
|
|
2015-03-06 14:55:30 -06:00
|
|
|
impl Sized for MyType {} //~ ERROR E0322
|
2016-08-14 13:57:33 -05:00
|
|
|
//~^ impl of 'Sized' not allowed
|
2015-03-30 16:49:30 -05:00
|
|
|
|
2017-02-19 06:46:29 -06:00
|
|
|
impl Sized for (MyType, MyType) {} //~ ERROR E0322
|
|
|
|
//~^ impl of 'Sized' not allowed
|
|
|
|
//~| ERROR E0117
|
2015-03-30 16:49:30 -05:00
|
|
|
|
2015-03-06 14:55:30 -06:00
|
|
|
impl Sized for &'static NotSync {} //~ ERROR E0322
|
2016-08-14 13:57:33 -05:00
|
|
|
//~^ impl of 'Sized' not allowed
|
2015-03-30 16:49:30 -05:00
|
|
|
|
2017-02-19 06:46:29 -06:00
|
|
|
impl Sized for [MyType] {} //~ ERROR E0322
|
|
|
|
//~^ impl of 'Sized' not allowed
|
|
|
|
//~| ERROR E0117
|
2015-03-30 16:49:30 -05:00
|
|
|
|
2017-02-19 06:46:29 -06:00
|
|
|
impl Sized for &'static [NotSync] {} //~ ERROR E0322
|
|
|
|
//~^ impl of 'Sized' not allowed
|
|
|
|
//~| ERROR E0117
|
2015-03-06 14:55:30 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|