<p dir="auto">A number of times I have wanted to use one function in one configuration in another in all other configurations. There's just no way to express this currently. A simple way to implement it would be with a <code class="notranslate">#[notcfg(...)]</code> attribute, which would just do the opposite of <code class="notranslate">#[cfg(...)]</code>.</p>
<p dir="auto"><code class="notranslate">fn main() { assert(false); }</code></p>
<p dir="auto">causes 16 Valgrind errors on my machine: <a href="https://gist.github.com/975527">https://gist.github.com/975527</a></p>
<p dir="auto">Doing <code class="notranslate">assert(true)</code> instead causes none</p>