aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_pattern_matching.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_pattern_matching.rb')
-rw-r--r--test/ruby/test_pattern_matching.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index e4c7507ac4..b18ef68316 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -796,6 +796,7 @@ END
assert_block do
case [0, 1, 2]
in x
+ x = x # avoid a warning "assigned but unused variable - x"
true
in [*, 2, *]
false