]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl[t]-foreign-for-(local, t).rs
850b6f85d0ed7b63a6492446076603ef0227b4c3
[rust.git] / src / test / ui / coherence / impl[t]-foreign-for-(local, t).rs
1 #![feature(re_rebalance_coherence)]
2
3 // compile-flags:--crate-name=test
4 // aux-build:coherence_lib.rs
5
6 extern crate coherence_lib as lib;
7 use lib::*;
8 use std::rc::Rc;
9
10 struct Local;
11
12 impl<T> Remote for (Local, T) {
13     //~^ ERROR only traits defined in the current crate
14     // | can be implemented for arbitrary types [E0117]
15 }
16
17 fn main() {}