parent
0c2c243342
commit
83722c62b0
2 changed files with 13 additions and 1 deletions
|
@ -1550,7 +1550,7 @@ impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for ImplTraitInTraitFinder<'_, 'tcx> {
|
||||||
{
|
{
|
||||||
let opaque_ty = tcx.fold_regions(unshifted_opaque_ty, |re, _depth| {
|
let opaque_ty = tcx.fold_regions(unshifted_opaque_ty, |re, _depth| {
|
||||||
match re.kind() {
|
match re.kind() {
|
||||||
ty::ReEarlyBound(_) | ty::ReFree(_) | ty::ReError(_) => re,
|
ty::ReEarlyBound(_) | ty::ReFree(_) | ty::ReError(_) | ty::ReStatic => re,
|
||||||
r => bug!("unexpected region: {r:?}"),
|
r => bug!("unexpected region: {r:?}"),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
// check-pass
|
||||||
|
|
||||||
|
#![allow(incomplete_features)]
|
||||||
|
#![feature(adt_const_params, return_position_impl_trait_in_trait)]
|
||||||
|
|
||||||
|
pub struct Element;
|
||||||
|
|
||||||
|
pub trait Node {
|
||||||
|
fn elements<const T: &'static str>(&self) -> impl Iterator<Item = Element>;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue