rust/tests/ui/coherence/auxiliary/coherence_lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
213 B
Rust
Raw Normal View History

#![crate_type="lib"]
pub trait Remote {
fn foo(&self) { }
}
pub trait Remote1<T> {
2019-09-22 05:59:10 -05:00
fn foo(&self, _t: T) { }
}
pub trait Remote2<T, U> {
2019-09-22 05:59:10 -05:00
fn foo(&self, _t: T, _u: U) { }
2013-03-06 21:09:17 -06:00
}
pub struct Pair<T,U>(T,U);