@@ -20,23 +20,27 @@ fn main() {
2020 //~| expected type `usize`
2121 //~| found type `()`
2222 //~| expected usize, found ()
23- //~| ERROR expected usize for repeat count, found tuple [E0306]
23+ //~| ERROR expected `usize` for repeat count, found tuple [E0306]
24+ //~| expected `usize`
2425 let c = [ 0 ; true ] ;
2526 //~^ ERROR mismatched types
2627 //~| expected usize, found bool
27- //~| ERROR expected usize for repeat count, found boolean [E0306]
28+ //~| ERROR expected `usize` for repeat count, found boolean [E0306]
29+ //~| expected `usize`
2830 let d = [ 0 ; 0.5 ] ;
2931 //~^ ERROR mismatched types
3032 //~| expected type `usize`
3133 //~| found type `{float}`
3234 //~| expected usize, found floating-point variable
33- //~| ERROR expected usize for repeat count, found float [E0306]
35+ //~| ERROR expected `usize` for repeat count, found float [E0306]
36+ //~| expected `usize`
3437 let e = [ 0 ; "foo" ] ;
3538 //~^ ERROR mismatched types
3639 //~| expected type `usize`
3740 //~| found type `&'static str`
3841 //~| expected usize, found &-ptr
39- //~| ERROR expected usize for repeat count, found string literal [E0306]
42+ //~| ERROR expected `usize` for repeat count, found string literal [E0306]
43+ //~| expected `usize`
4044 let f = [ 0 ; -4_isize ] ;
4145 //~^ ERROR constant evaluation error
4246 //~| expected usize, found isize
@@ -55,5 +59,6 @@ fn main() {
5559 //~| expected type `usize`
5660 //~| found type `main::G`
5761 //~| expected usize, found struct `main::G`
58- //~| ERROR expected usize for repeat count, found struct [E0306]
62+ //~| ERROR expected `usize` for repeat count, found struct [E0306]
63+ //~| expected `usize`
5964}
0 commit comments