mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
16 lines
307 B
Rust
16 lines
307 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/112588>.
|
|
|
|
//@ check-pass
|
|
|
|
#![feature(negative_impls, with_negative_coherence)]
|
|
|
|
trait Trait {}
|
|
impl<T: ?Sized> !Trait for &T {}
|
|
|
|
trait OtherTrait<T> {}
|
|
|
|
impl<T: Trait> OtherTrait<T> for T {}
|
|
impl<T, U> OtherTrait<&U> for &T {}
|
|
|
|
fn main() {}
|