@@ -473,7 +473,7 @@ fn main() {
473473"
474474 exit_code , output := run_ownership_check (code)
475475 assert exit_code != 0 , 'should fail: s moved into struct field'
476- assert output.contains ('use of moved value: `s`' ), 'got: '
476+ assert output.contains ('use of moved value: `s`' ), 'got: ${ output } '
477477}
478478
479479fn test_ownership_move_into_array_literal () {
@@ -486,7 +486,7 @@ fn main() {
486486"
487487 exit_code , output := run_ownership_check (code)
488488 assert exit_code != 0 , 'should fail: s moved into array literal'
489- assert output.contains ('use of moved value: `s`' ), 'got: '
489+ assert output.contains ('use of moved value: `s`' ), 'got: ${ output } '
490490}
491491
492492fn test_ownership_move_into_array_append () {
@@ -500,7 +500,7 @@ fn main() {
500500"
501501 exit_code , output := run_ownership_check (code)
502502 assert exit_code != 0 , 'should fail: s moved into array append'
503- assert output.contains ('use of moved value: `s`' ), 'got: '
503+ assert output.contains ('use of moved value: `s`' ), 'got: ${ output } '
504504}
505505
506506fn test_ownership_move_into_map_literal () {
@@ -513,5 +513,5 @@ fn main() {
513513"
514514 exit_code , output := run_ownership_check (code)
515515 assert exit_code != 0 , 'should fail: s moved into map literal'
516- assert output.contains ('use of moved value: `s`' ), 'got: '
516+ assert output.contains ('use of moved value: `s`' ), 'got: ${ output } '
517517}
0 commit comments