<p dir="auto">rust-bindgen sets cargo:rustc -L to /usr/local/lib via build.rs</p>
<p dir="auto">When this happens, linking fails because duplicate candidate dylibs are found in the bootstrap libs: (/usr/local/lib) and the rustlib (/usr/local/lib/rustlib/../lib)</p>
<p dir="auto">Specific errors below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main() {
    for i in range(0, 30) {
    }
}"><pre class="notranslate"><code class="notranslate">fn main() {
    for i in range(0, 30) {
    }
}
</code></pre></div>
<p dir="auto">says</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2:11: 2:16 error: cannot determine a type for this bounded type parameter: cannot determine the type of this integer; add a suffix to specify the type explicitly
2   for i in range(0, 30) {
             ^~~~~"><pre class="notranslate"><code class="notranslate">2:11: 2:16 error: cannot determine a type for this bounded type parameter: cannot determine the type of this integer; add a suffix to specify the type explicitly
2   for i in range(0, 30) {
             ^~~~~
</code></pre></div>
<p dir="auto">11 times.</p>