]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-vec-local.rs
Auto merge of #103808 - cjgillot:vec-cache, r=TaKO8Ki
[rust.git] / src / test / ui / coherence / coherence-vec-local.rs
1 // Test that a local type (with no type parameters) appearing within a
2 // *non-fundamental* remote type like `Vec` is not considered local.
3
4 // aux-build:coherence_lib.rs
5
6 extern crate coherence_lib as lib;
7 use lib::Remote;
8
9 struct Local;
10
11 impl Remote for Vec<Local> { }
12 //~^ ERROR E0117
13
14 fn main() { }