2015-01-30 23:46:53 +00:00
|
|
|
// Test that the same coverage rules apply even if the local type appears in the
|
|
|
|
// list of type parameters, not the self type.
|
|
|
|
|
2015-03-19 22:39:03 +00:00
|
|
|
// aux-build:coherence_lib.rs
|
2018-12-28 23:11:13 +00:00
|
|
|
|
2015-01-01 21:45:59 +00:00
|
|
|
|
2015-03-19 22:39:03 +00:00
|
|
|
extern crate coherence_lib as lib;
|
2015-01-30 23:46:53 +00:00
|
|
|
use lib::{Remote1, Pair};
|
2015-01-01 21:45:59 +00:00
|
|
|
|
2015-01-30 23:46:53 +00:00
|
|
|
pub struct Local<T>(T);
|
2015-01-01 21:45:59 +00:00
|
|
|
|
2015-02-16 19:40:38 +00:00
|
|
|
impl<T, U> Remote1<Pair<T, Local<U>>> for i32 { }
|
2019-10-26 15:28:02 +00:00
|
|
|
//~^ ERROR E0117
|
2015-01-01 21:45:59 +00:00
|
|
|
|
|
|
|
fn main() { }
|