This issue was mentioned by @allaboutevemirolive in #4833 (comment):
$ mkdir test test2
$ cargo run mv test test2
mv: cannot move 'test' to a subdirectory of itself, 'test2/test'
Using different directory names, the same steps work fine:
$ mkdir aa bb
$ cargo run mv aa bb
$ ls bb
aa