// xfail-boot// -*- rust -*-// Tests for if as expressions returning structural typesfntest_rec(){autores=if(true){rec(i=100)}else{rec(i=101)};assert(res==rec(i=100));}fntest_tag(){tagmood{happy;sad;}autores=if(true){happy}else{sad};assert(res==happy);}fnmain(){test_rec();test_tag();}