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