2017-07-25 01:46:26 -05:00
|
|
|
// Tests that we consider `i16: Remote` to be ambiguous, even
|
|
|
|
// though the upstream crate doesn't implement it for now.
|
|
|
|
|
|
|
|
// aux-build:coherence_lib.rs
|
2018-12-28 17:11:13 -06:00
|
|
|
|
2017-07-25 01:46:26 -05:00
|
|
|
|
|
|
|
extern crate coherence_lib;
|
|
|
|
|
|
|
|
use coherence_lib::Remote;
|
|
|
|
|
|
|
|
trait Foo {}
|
|
|
|
impl<T> Foo for T where T: Remote {}
|
|
|
|
impl Foo for i16 {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0119
|
2017-07-25 01:46:26 -05:00
|
|
|
|
|
|
|
fn main() {}
|