rust/tests/ui/coherence/auxiliary/coherence_lib.rs
2023-01-11 09:32:08 +00:00

16 lines
213 B
Rust

#![crate_type="lib"]
pub trait Remote {
fn foo(&self) { }
}
pub trait Remote1<T> {
fn foo(&self, _t: T) { }
}
pub trait Remote2<T, U> {
fn foo(&self, _t: T, _u: U) { }
}
pub struct Pair<T,U>(T,U);