Sadly, that's not how it works; opting out of the copyright game is a lot harder than it should be. "No license" means all rights reserved, and even a public domain dedication is invalid in certain countries.
Your best bet is to put your code in the PD and provide a fallback maximally permissive license in countries with insane legislation where that doesn't work (e.g. Germany). The Unlicense notably does this, though lawyers seem to hate it for various reasons.
Alternatively, you can use licenses like 0BSD/MIT-0 which are PD-equivalent, but you technically retain copyright, so it should work in aforementioned countries too.
Sadly, that's not how it works; opting out of the copyright game is a lot harder than it should be. "No license" means all rights reserved, and even a public domain dedication is invalid in certain countries.
Your best bet is to put your code in the PD and provide a fallback maximally permissive license in countries with insane legislation where that doesn't work (e.g. Germany). The Unlicense notably does this, though lawyers seem to hate it for various reasons.
Alternatively, you can use licenses like 0BSD/MIT-0 which are PD-equivalent, but you technically retain copyright, so it should work in aforementioned countries too.