Circumvent const fn problem
This commit is contained in:
parent
3f2060aa7c
commit
8d53b89b66
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ fn test_env_with_pool<F>(
|
|||
}
|
||||
|
||||
const D1: ty::DebruijnIndex = ty::INNERMOST;
|
||||
const D2: ty::DebruijnIndex = D1.shifted_in(1);
|
||||
const D2: ty::DebruijnIndex = ty::DebruijnIndex(1);
|
||||
|
||||
impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
|
||||
pub fn tcx(&self) -> TyCtxt<'a, 'gcx, 'tcx> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue