It would be really interesting for me, to once see a kernel in a higher language than C. Would it be possible to write something like that in Rust, or am I missing something?
There is Oberon:
http://ignorethecode.net/blog/2009/04/22/oberon/
That's a whole family of OSes, from tiny text-mode up to SMP, TCP/IP-capable GUI OSes, in the language that followed Modula-2 (which in turn was the successor to Pascal.)
There was TUNIS, a UNIX implemented in a Pascal derivative:
https://en.wikipedia.org/wiki/TUNIS
Here's a whole article on them I wrote last year:
https://www.theregister.com/2022/03/29/non_c_operating_syste...
There are many many small hobby OSes in all kinds of languages: https://wiki.osdev.org/Projects