]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/issue-55001.rs
Update unsuspicious file list
[rustc.git] / src / test / rustdoc / issue-55001.rs
CommitLineData
13cf67c4
XL
1// Regression test for issue #55001. Previously, we would incorrectly
2// cache certain trait selection results when checking for blanket impls,
3// resulting in an ICE when we tried to confirm the cached ParamCandidate
4// against an obligation.
5
6pub struct DefaultAllocator;
7pub struct Standard;
8pub struct Inner;
9
10pub trait Rand {}
11
12pub trait Distribution<T> {}
13pub trait Allocator<N> {}
14
15impl<T> Rand for T where Standard: Distribution<T> {}
16
17impl<A> Distribution<Point<A>> for Standard
18where
19DefaultAllocator: Allocator<A>,
20Standard: Distribution<A> {}
21
22impl Distribution<Inner> for Standard {}
23
24
25pub struct Point<N>
26where DefaultAllocator: Allocator<N>
27{
28 field: N
29}
30
31fn main() {}