Skip to content

regression: NonZero is ambiguous #121604

Closed
Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

My guess is this will be closed as expected, but should be a conscious decision.

[INFO] [stdout] error[E0659]: `NonZero` is ambiguous
[INFO] [stdout]    --> src/impls.rs:723:14
[INFO] [stdout]     |
[INFO] [stdout] 723 |         impl NonZero for $nzty {
[INFO] [stdout]     |              ^^^^^^^ ambiguous name
[INFO] [stdout]     |
[INFO] [stdout]     = note: ambiguous because of multiple glob imports of a name in the same module
[INFO] [stdout] note: `NonZero` could refer to the trait imported here
[INFO] [stdout]    --> src/impls.rs:1:5
[INFO] [stdout]     |
[INFO] [stdout] 1   | use crate::*;
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout]     = help: consider adding an explicit import of `NonZero` to disambiguate
[INFO] [stdout] note: `NonZero` could also refer to the struct imported here
[INFO] [stdout]    --> src/impls.rs:2:5
[INFO] [stdout]     |
[INFO] [stdout] 2   | use core::num::*;
[INFO] [stdout]     |     ^^^^^^^^^^^^
[INFO] [stdout]     = help: consider adding an explicit import of `NonZero` to disambiguate

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions