Skip to content
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

error[E0518]: attribute should be applied to function #277

Closed
FuGangqiang opened this issue Apr 3, 2018 · 4 comments
Closed

error[E0518]: attribute should be applied to function #277

FuGangqiang opened this issue Apr 3, 2018 · 4 comments

Comments

@FuGangqiang
Copy link

FuGangqiang commented Apr 3, 2018

when installing my mdblog crate with nightly-2018-03-28, all is well,
but with nightly-2018-04-01, compiling error:

$ cargo install mdblog
...
...
...
   Compiling serde_derive v1.0.36
   Compiling mime_guess v2.0.0-alpha.4
   Compiling tera v0.11.6
   Compiling tokio-core v0.1.16
error[E0518]: attribute should be applied to function
  --> /home/fu/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tera-0.11.6/src/parser/mod.rs:13:10
   |
13 | #[derive(Parser)]
   |          ^^^^^^ not a function

error: aborting due to previous error

For more information about this error, try `rustc --explain E0518`.
error: Could not compile `tera`.
warning: build failed, waiting for other jobs to finish...
error: build failed

@Keats
Copy link
Owner

Keats commented Apr 3, 2018

I get that error in Gutenberg nightly as well. Looks like a regression from rustc? I'll check if there is already an issue for that

@Keats
Copy link
Owner

Keats commented Apr 3, 2018

I did a cargo update in the tera folder and it compiles? weird

@FuGangqiang
Copy link
Author

after cargo update, my crate also compiles.

@dragostis
Copy link

Most probably related to #218.

@Keats Keats closed this as completed Apr 10, 2018
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

No branches or pull requests

3 participants