rust/tests/ui/coherence/coherence-vec-local-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
298 B
Rust
Raw Normal View History

// Test that a local, generic type appearing within a
// *non-fundamental* remote type like `Vec` is not considered local.
// aux-build:coherence_lib.rs
extern crate coherence_lib as lib;
use lib::Remote;
struct Local<T>(T);
impl<T> Remote for Vec<Local<T>> { }
//~^ ERROR E0117
fn main() { }