]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl-foreign[fundemental[local]]-for-foreign.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / coherence / impl-foreign[fundemental[local]]-for-foreign.rs
1 // compile-flags:--crate-name=test
2 // aux-build:coherence_lib.rs
3 // check-pass
4
5 extern crate coherence_lib as lib;
6 use lib::*;
7 use std::rc::Rc;
8
9 struct Local;
10 struct Local1<T>(Rc<T>);
11
12 impl Remote1<Box<Local>> for i32 {}
13 impl Remote1<Box<Local1<i32>>> for f64 {}
14 impl<T> Remote1<Box<Local1<T>>> for f32 {}
15
16 fn main() {}