Skip to content

struct Foo {} should be rejected #5449

New issue

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

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

Already on GitHub? Sign in to your account

Closed
catamorphism opened this issue Mar 20, 2013 · 0 comments
Closed

struct Foo {} should be rejected #5449

catamorphism opened this issue Mar 20, 2013 · 0 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@catamorphism
Copy link
Contributor

The correct syntax is struct Foo;. Currently, this is accepted silently, but with errors if you try to use the constructor Foo.

@luqmana luqmana closed this as completed Mar 29, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this issue May 2, 2020
Make use of more diagnostic items

This makes use of some (not all) already existing diagnostic items. Specifically:

* 79982a2: `core::mem::uninitialized`, `core::mem::zeroed`, `alloc::sync::Arc`, `alloc::sync::Rc`
* 83874d0: `Option` and `Result`

cc rust-lang#5393

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

2 participants