mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-07 13:25:45 +00:00
15 lines
295 B
Rust
15 lines
295 B
Rust
#![feature(negative_impls)]
|
|
#![feature(with_negative_coherence)]
|
|
|
|
struct Wrap<T>(T);
|
|
|
|
trait Foo {}
|
|
impl<T: 'static> !Foo for Box<T> {}
|
|
|
|
trait Bar {}
|
|
impl<T> Bar for T where T: Foo {}
|
|
impl<T> Bar for Box<T> {}
|
|
//~^ ERROR conflicting implementations of trait `Bar` for type `Box<_>`
|
|
|
|
fn main() {}
|