1 2 3 4 5 6 7 8 9 10
macro_rules! not_a_place { ($thing:expr) => { $thing = 42; //~^ ERROR invalid left-hand side expression } } fn main() { not_a_place!(99); }