diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-26093.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26093.rs b/src/test/ui/issues/issue-26093.rs new file mode 100644 index 000000000..c838515ca --- /dev/null +++ b/src/test/ui/issues/issue-26093.rs @@ -0,0 +1,12 @@ +macro_rules! not_a_place { + ($thing:expr) => { + $thing = 42; + //~^ ERROR invalid left-hand side of assignment + $thing += 42; + //~^ ERROR invalid left-hand side of assignment + } +} + +fn main() { + not_a_place!(99); +} |