summary refs log tree commit diff
path: root/src/test/ui/coherence/coherence-vec-local-2.rs
blob: 423543964c20bdd921f8b0becc51be687630df05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test that a local, generic type appearing within a
// *non-fundamental* remote type like `Vec` is not considered local.

// aux-build:coherence_lib.rs
// revisions: old re

#![cfg_attr(re, feature(re_rebalance_coherence))]

extern crate coherence_lib as lib;
use lib::Remote;

struct Local<T>(T);

impl<T> Remote for Vec<Local<T>> { }
//[old]~^ ERROR E0210
//[re]~^^ ERROR E0117

fn main() { }