You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 0.23 I get the following error message when I define an enum which contains the name 'Error':
ambiguous associated item
this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
for more information, see issue #57644 <https://github.com/rust-lang/rust/issues/57644>
`#[deny(ambiguous_associated_items)]` on by default
I can replicate this and I've bisected it to 0a185cd. I can confirm that any of the associated types Error, Output and Target for the IntoPyObject trait lead to this error.
Bug Description
Since 0.23 I get the following error message when I define an enum which contains the name 'Error':
The enum is defined as follows:
Steps to Reproduce
Just changed the version from 0.22 to 0.23 and this error message is shown.
Backtrace
No response
Your operating system and version
Ubuntu 24.04.1 LTS
Your Python version (
python --version
)Python 3.12.7
Your Rust version (
rustc --version
)rustc 1.84.0-nightly (5ec7d6eee 2024-11-17)
Your PyO3 version
0.23.1
How did you install python? Did you use a virtualenv?
pyenv
Additional Info
No response
The text was updated successfully, but these errors were encountered: