Skip to content

Fix build error: "struct field shorthands are unstable" #98

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
wants to merge 1 commit into from
Closed

Fix build error: "struct field shorthands are unstable" #98

wants to merge 1 commit into from

Conversation

asakasa
Copy link

@asakasa asakasa commented May 24, 2017

I caught the error as below in building this library (ver 11.1.0).

error: struct field shorthands are unstable (see issue #37340)
  --> src/io/tcp.rs:66:13
   |
66 |             address,
   |             ^^^^^^^

error: aborting due to previous error

In the future, struct field must be described specifically.
See #37340 on rust-lang/rust repo.

My Rust environment is below.

$ cargo -V
cargo-0.17.0-nightly (f9e5481 2017-03-03)
$ rustc -V
rustc 1.16.0 (30cf806ef 2017-03-10)

Thanks.

@blackbeam
Copy link
Owner

blackbeam commented May 24, 2017

Hi!

field_init_shorthand feature is stable since 1.17.0. Please update your rust version.

@blackbeam blackbeam closed this May 24, 2017
serprex pushed a commit to serprex/rust-mysql-simple that referenced this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants