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