Test for cargo check with macro and both lib and bin.
Test for cargo check with macro and both lib and bin.

Closes #3419

durka/cargo,vojtechkral/cargo,durka/cargo,tsurai/cargo,tshepang/cargo,durka/cargo,rust-lang/cargo,vojtechkral/cargo,achanda/cargo,rust-lang/cargo,tsurai/cargo,rustyhorde/cargo,eminence/cargo,nipunn1313/cargo,eminence/cargo,achanda/cargo,achanda/cargo,rustyhorde/cargo,sbeckeriv/cargo,tsurai/cargo,rust-lang/cargo,rustyhorde/cargo,vojtechkral/cargo,tsurai/cargo,tsurai/cargo,eminence/cargo,rustyhorde/cargo,sbeckeriv/cargo,tshepang/cargo,achanda/cargo,durka/cargo,rust-lang/cargo,nipunn1313/cargo,sbeckeriv/cargo,vojtechkral/cargo,eminence/cargo,tshepang/cargo,tshepang/cargo,nipunn1313/cargo,sbeckeriv/cargo,nipunn1313/cargo