The build should fail. However, the error message is completely generator-dependent as it is the build tool which (should) eventually detect this case.