"can't use generic parameters from outer function" only when in nightly #111541
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I made a blank cargo project (ran
cargo init
in an empty directory), and added dependencies to my Cargo.toml like so:Originally when I went to run
RUSTFLAGS="-Z macro-backtrace" cargo build
, I was in nightly, and got a compile errorerror[E0401]: can't use generic parameters from outer function
(full error below). Then, when i switched to stable, there was no error and everything built fine!Version it worked on
It most recently worked on: Rust 1.69
Version with regression
rustc --version --verbose
:@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: