const BMCR_SPEED100 := uapi::BMCR_SPEED100;
const BMCR_SPEED100 := uapi::BMCR_SPEED100;
Posted Jun 30, 2025 19:57 UTC (Mon) by adobriyan (subscriber, #30858)Parent article: How to write Rust in the kernel: part 2
> Types are mandatory for const definitions, but optional for let ones.
Maybe they'll change that. The moment C programmer gets a taste of type inference, they strike back!
I, for one, think that compile time constants should be in ℤ for as long as possible and silently converted if there is no loss of information.
