2015-03-19 17:39:03 -05:00
|
|
|
// aux-build:coherence_orphan_lib.rs
|
2020-01-09 04:56:38 -06:00
|
|
|
#![feature(negative_impls)]
|
2015-01-13 13:21:19 -06:00
|
|
|
|
2015-03-19 17:39:03 -05:00
|
|
|
extern crate coherence_orphan_lib as lib;
|
2014-10-21 22:48:39 -05:00
|
|
|
|
|
|
|
use lib::TheTrait;
|
|
|
|
|
|
|
|
struct TheType;
|
|
|
|
|
2015-03-06 14:55:30 -06:00
|
|
|
impl TheTrait<usize> for isize { }
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0117
|
2014-10-21 22:48:39 -05:00
|
|
|
|
2015-01-30 17:46:53 -06:00
|
|
|
impl TheTrait<TheType> for isize { }
|
2014-10-21 22:48:39 -05:00
|
|
|
|
2015-01-08 04:54:35 -06:00
|
|
|
impl TheTrait<isize> for TheType { }
|
2014-10-21 22:48:39 -05:00
|
|
|
|
2023-03-06 07:05:35 -06:00
|
|
|
impl !Send for Vec<isize> { } //~ ERROR E0117
|
|
|
|
//~^ WARNING
|
|
|
|
//~| WARNING this will change its meaning
|
2015-01-13 13:21:19 -06:00
|
|
|
|
2014-10-21 22:48:39 -05:00
|
|
|
fn main() { }
|