You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… r=alexcrichton
Fixes the problem in rust-lang#16974 with unhelpful error messages when accidentally using the wrong syntax for the `crate_type="lib"` attribute. The attribute syntax error now shows up instead of "main function not found".
… r=alexcrichton
Fixes the problem in rust-lang#16974 with unhelpful error messages when accidentally using the wrong syntax for the `crate_type="lib"` attribute. The attribute syntax error now shows up instead of "main function not found".
hello.rs:1:1: 1:20 error: `crate_type` requires a value
hello.rs:1 #![crate_type(lib)]
^~~~~~~~~~~~~~~~~~~
note: for example: `#![crate_type="lib"]`
error: aborting due to previous error
For example,
#![crate_type(lib)]
produceswhich is not a very good clue to the correct syntax
#![crate_type="lib"]
.The text was updated successfully, but these errors were encountered: