2018-08-30 12:18:55 +00:00
|
|
|
// run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2020-01-09 10:56:38 +00:00
|
|
|
#![feature(negative_impls)]
|
2014-12-28 22:33:18 +00:00
|
|
|
|
|
|
|
struct TestType;
|
|
|
|
|
|
|
|
impl TestType {}
|
|
|
|
|
2015-04-18 05:12:20 +00:00
|
|
|
trait TestTrait {}
|
2014-12-28 22:33:18 +00:00
|
|
|
|
2015-01-11 12:14:39 +00:00
|
|
|
impl !Send for TestType {}
|
2014-12-28 22:33:18 +00:00
|
|
|
|
2015-02-12 15:29:52 +00:00
|
|
|
struct TestType2<T>(T);
|
2014-12-28 22:33:18 +00:00
|
|
|
|
|
|
|
impl<T> TestType2<T> {}
|
|
|
|
|
2015-01-11 12:14:39 +00:00
|
|
|
impl<T> !Send for TestType2<T> {}
|
2014-12-28 22:33:18 +00:00
|
|
|
|
|
|
|
fn main() {}
|