Skip to content

next-solver: "expected generic lifetime parameter, found '_" #145748

@xDarksome

Description

@xDarksome

I tried to switch to next-solver, because of an ICE similar to this: #145482

This function fails to compile with:

error[E0792]: expected generic lifetime parameter, found `'_` --> /home/darksome/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alloy-sol-macro-expander-1.3.0/src/expand/mod.rs:567:54 | 530 | impl<'ast> ExpCtxt<'ast> { | ---- this generic parameter must be used with a generic lifetime parameter ... 567 | move |ty| self.custom_type(ty).is_value_type(self.custom_is_value_type()) | 

It works on stable and nightly without -Znext-solver

Meta

rustc --version --verbose:

rustc 1.91.0-nightly (3672a55b7 2025-08-13) binary: rustc commit-hash: 3672a55b7cfd0a12e7097197b6242872473ffaa7 commit-date: 2025-08-13 host: x86_64-unknown-linux-gnu release: 1.91.0-nightly LLVM version: 21.1.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trait-systemArea: Trait systemC-bugCategory: This is a bug.T-typesRelevant to the types team, which will review and decide on the PR/issue.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions