2015-03-30 16:49:30 -05:00
|
|
|
// Test that a local type (with no type parameters) appearing within a
|
|
|
|
// *non-fundamental* remote type like `Vec` is not considered local.
|
|
|
|
|
2015-03-19 17:39:03 -05:00
|
|
|
// aux-build:coherence_lib.rs
|
2015-01-01 15:45:59 -06:00
|
|
|
|
2015-03-19 17:39:03 -05:00
|
|
|
extern crate coherence_lib as lib;
|
2015-01-01 15:45:59 -06:00
|
|
|
use lib::Remote;
|
|
|
|
|
|
|
|
struct Local;
|
|
|
|
|
2018-12-28 17:11:13 -06:00
|
|
|
impl Remote for Vec<Local> { }
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0117
|
2015-01-01 15:45:59 -06:00
|
|
|
|
|
|
|
fn main() { }
|