]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/impl[t]-foreign-for-foreign[t].rs
Auto merge of #106853 - TimNN:undo-remap, r=oli-obk
[rust.git] / tests / ui / coherence / impl[t]-foreign-for-foreign[t].rs
1 // compile-flags:--crate-name=test
2 // aux-build:coherence_lib.rs
3
4 extern crate coherence_lib as lib;
5 use lib::*;
6 use std::rc::Rc;
7 use std::sync::Arc;
8
9 struct Local;
10
11 impl Remote for Rc<Local> {
12     //~^ ERROR only traits defined in the current crate
13     // | can be implemented for arbitrary types [E0117]
14 }
15
16 impl<T> Remote for Arc<T> {
17     //~^ ERROR only traits defined in the current crate
18     // | can be implemented for arbitrary types [E0117]
19 }
20
21 fn main() {}