2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2021-10-22 17:54:20 -03:00
|
|
|
|
2022-02-02 14:36:45 -03:00
|
|
|
#![feature(with_negative_coherence)]
|
2021-10-22 17:54:20 -03:00
|
|
|
|
|
|
|
use std::ops::DerefMut;
|
|
|
|
|
|
|
|
trait Foo {}
|
|
|
|
impl<T: DerefMut> Foo for T {}
|
|
|
|
impl<U> Foo for &U {}
|
|
|
|
|
|
|
|
fn main() {}
|