Keywords

The following keywords are reserved by the Rust language and may not be used as names of functions, variables, macros, modules, crates, constants, static values, attributes, struct fields, or parameters.

  • abstract
  • alignof
  • as
  • become
  • box
  • break
  • const
  • continue
  • crate
  • do
  • else
  • enum
  • extern
  • false
  • final
  • fn
  • for
  • if
  • impl
  • in
  • let
  • loop
  • macro
  • match
  • mod
  • move
  • mut
  • offsetof
  • override
  • priv
  • proc
  • pub
  • pure
  • ref
  • return
  • Self
  • self
  • sizeof
  • static
  • struct
  • super
  • trait
  • true
  • type
  • typeof
  • unsafe
  • unsized
  • use
  • virtual
  • where
  • while
  • yield