Is there anybody know why this kind of simple code cannot be run?

I think I gave a similar question a good answer in the past: I thought I understood "pass-by-sharing" in Julia until I found this - #19 by Henrique_Becker.