]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-vec-local-2.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / coherence / coherence-vec-local-2.rs
1 // Test that a local, generic type 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<T>(T);
10
11 impl<T> Remote for Vec<Local<T>> { }
12 //~^ ERROR E0117
13
14 fn main() { }