]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-projection-ok-orphan.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-projection-ok-orphan.rs
CommitLineData
dc9dc135
XL
1// Here we do not get a coherence conflict because `Baz: Iterator`
2// does not hold and (due to the orphan rules), we can rely on that.
3
4// check-pass
9cc50fc6
SL
5
6pub trait Foo<P> {}
7
8pub trait Bar {
9 type Output: 'static;
10}
11
12struct Baz;
13impl Foo<i32> for Baz { }
14
15impl<A:Iterator> Foo<A::Item> for A { }
16
a1dfa0c6 17fn main() {}