2020-03-13 14:40:29 -04:00
|
|
|
// A simple test that we are able to create negative impls, when the
|
|
|
|
// feature gate is given.
|
|
|
|
//
|
2020-01-08 06:39:38 -05:00
|
|
|
// run-pass
|
|
|
|
|
2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2020-01-08 06:39:38 -05:00
|
|
|
#![allow(dead_code)]
|
2015-01-12 10:59:22 +01:00
|
|
|
|
|
|
|
struct TestType;
|
|
|
|
|
2015-02-12 10:29:52 -05:00
|
|
|
trait TestTrait {
|
2020-01-08 06:39:38 -05:00
|
|
|
fn dummy(&self) {}
|
2015-02-12 10:29:52 -05:00
|
|
|
}
|
2015-01-12 10:59:22 +01:00
|
|
|
|
|
|
|
impl !TestTrait for TestType {}
|
|
|
|
|
|
|
|
fn main() {}
|