]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/impl-foreign-for-foreign[foreign].rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / impl-foreign-for-foreign[foreign].rs
CommitLineData
e74abb32
XL
1// compile-flags:--crate-name=test
2// aux-build:coherence_lib.rs
3
4extern crate coherence_lib as lib;
5use lib::*;
6use std::rc::Rc;
7
8struct Local;
9
10impl Remote1<Rc<i32>> for i32 {
11 //~^ ERROR only traits defined in the current crate
12 // | can be implemented for arbitrary types [E0117]
13}
14impl Remote1<Rc<Local>> for f64 {
15 //~^ ERROR only traits defined in the current crate
16 // | can be implemented for arbitrary types [E0117]
17}
18impl<T> Remote1<Rc<T>> for f32 {
19 //~^ ERROR only traits defined in the current crate
20 // | can be implemented for arbitrary types [E0117]
21}
22
23fn main() {}