Skip to content

resolve: "bindings cannot shadow constants" diagnostics are unreliable #35115

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jseyfried opened this issue Jul 29, 2016 · 0 comments · Fixed by #35116
Closed

resolve: "bindings cannot shadow constants" diagnostics are unreliable #35115

jseyfried opened this issue Jul 29, 2016 · 0 comments · Fixed by #35116

Comments

@jseyfried
Copy link
Contributor

const a: u8 = 0; //~ NOTE constant `a` is defined here

fn main() {
    // fn f() {} // If this line is uncommented, the `NOTE` is suppressed.
    let a = 0; //~ ERROR let bindings cannot shadow constants
}
bors added a commit that referenced this issue Aug 5, 2016
… r=nrc

resolve: diagnostics improvement and groundwork for RFC 1560

Fixes #35115, fixes #35135, and lays groundwork for #32213 (cc #35120).
r? @nrc
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant