mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
299 B
Rust
14 lines
299 B
Rust
// 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() { }
|