Update tests

This commit is contained in:
Seiichi Uchida 2017-10-02 00:04:32 +09:00
parent eebad40932
commit 1752929983
2 changed files with 23 additions and 0 deletions

View File

@ -48,3 +48,12 @@ pub trait SomeTrait<T>
T: Something + Sync + Send + Display + Debug + Copy + Hash + Debug + Display + Write + Read + FromStr
{
}
// #2020
impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
fn elaborate_bounds<F>(&mut self, bounds: &[ty::PolyTraitRef<'tcx>], mut mk_cand: F)
where F: for<'b> FnMut(&mut ProbeContext<'b, 'gcx, 'tcx>, ty::PolyTraitRef<'tcx>, ty::AssociatedItem),
{
// ...
}
}

View File

@ -113,3 +113,17 @@ where
+ FromStr,
{
}
// #2020
impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
fn elaborate_bounds<F>(&mut self, bounds: &[ty::PolyTraitRef<'tcx>], mut mk_cand: F)
where
F: for<'b> FnMut(
&mut ProbeContext<'b, 'gcx, 'tcx>,
ty::PolyTraitRef<'tcx>,
ty::AssociatedItem,
),
{
// ...
}
}