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;
|
|
|
|
|
|
|
|
struct A<X>(X);
|
|
|
|
impl<T> A<T> where T: Remote { fn dummy(&self) { } }
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0592
|
2017-07-25 01:46:26 -05:00
|
|
|
impl A<i16> { fn dummy(&self) { } }
|
|
|
|
|
|
|
|
fn main() {}
|