Skip to main content

tdz_error

Function tdz_error 

Source
pub fn tdz_error(name: &str) -> String
Expand description

The error a read of a lexical binding still in its TEMPORAL DEAD ZONE raises. Distinct from ref_error on purpose: node says which of the two happened, and the difference is how a reader tells a misspelled name from a let used above its declaration.