]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl-foreign[foreign]-for-foreign.rs
Rollup merge of #104467 - fuzzypixelz:fix/attempt-to-substract-with-overflow, r=compi...
[rust.git] / src / test / ui / coherence / impl-foreign[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
10 impl Remote1<u32> for f64 {
11     //~^ ERROR only traits defined in the current crate
12     // | can be implemented for arbitrary types [E0117]
13 }
14
15 fn main() {}