All 48 Rust keywords in under 300 characters

629 points nik-rev 37 comments
mod x {
    pub(super) struct X;
    use Ok;
    impl X {
        pub(in crate) async fn x(self: Self, x: &'static &'_ dyn for<> Fn()) where {
            unsafe extern { safe fn x(); }
            macro_rules! x { () => {}; }
            if 'x: loop {
                return match while let true = break 'x false { continue } {
                    ref x => { &raw mut x; async { const { enum A {} } }.await as () },
                };
            } { type x = X; } else { move || { trait x { }; union B { x: () } }; }
        }
    }
}

Playground

I was on a train and wanted to try and express all Rust keywords (strict + weak) in as few characters as possible.

Result: 302 characters used (excluding whitespace). Can you do better than me?
Note: Calling any macro is cheating :P (e.g. stringify!(const move unsafe...))