]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / coherence / impl-foreign[fundemental[foreign]]-for-foreign.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
8 struct Local;
9 struct Local1<T>(Rc<T>);
10
11 impl Remote1<Box<String>> for i32 {
12     //~^ ERROR only traits defined in the current crate
13     // | can be implemented for arbitrary types [E0117]
14 }
15 impl Remote1<Box<Rc<i32>>> for f64 {
16     //~^ ERROR only traits defined in the current crate
17     // | can be implemented for arbitrary types [E0117]
18 }
19 impl<T> Remote1<Box<Rc<T>>> for f32 {
20     //~^ ERROR only traits defined in the current crate
21     // | can be implemented for arbitrary types [E0117]
22 }
23
24 fn main() {}