2016-02-23 09:48:34 -06:00
|
|
|
// Make sure specialization cannot change impl polarity
|
|
|
|
|
2015-12-28 17:40:11 -06:00
|
|
|
#![feature(optin_builtin_traits)]
|
2015-12-30 17:25:31 -06:00
|
|
|
#![feature(specialization)]
|
2015-12-28 17:40:11 -06:00
|
|
|
|
2017-12-03 06:56:53 -06:00
|
|
|
auto trait Foo {}
|
2016-02-23 09:48:34 -06:00
|
|
|
|
|
|
|
impl<T> Foo for T {}
|
2020-01-08 13:10:59 -06:00
|
|
|
impl !Foo for u8 {} //~ ERROR E0748
|
2015-12-28 17:40:11 -06:00
|
|
|
|
2017-12-03 06:56:53 -06:00
|
|
|
auto trait Bar {}
|
2015-12-28 17:40:11 -06:00
|
|
|
|
2016-02-23 09:48:34 -06:00
|
|
|
impl<T> !Bar for T {}
|
2020-01-08 13:10:59 -06:00
|
|
|
impl Bar for u8 {} //~ ERROR E0748
|
2015-12-28 17:40:11 -06:00
|
|
|
|
2016-02-23 09:48:34 -06:00
|
|
|
fn main() {}
|