]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/coherence-vec-local.rs
Auto merge of #106853 - TimNN:undo-remap, r=oli-obk
[rust.git] / tests / 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() { }