@@ -20,23 +20,27 @@ fn main() {
20
20
//~| expected type `usize`
21
21
//~| found type `()`
22
22
//~| 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`
24
25
let c = [ 0 ; true ] ;
25
26
//~^ ERROR mismatched types
26
27
//~| 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`
28
30
let d = [ 0 ; 0.5 ] ;
29
31
//~^ ERROR mismatched types
30
32
//~| expected type `usize`
31
33
//~| found type `{float}`
32
34
//~| 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`
34
37
let e = [ 0 ; "foo" ] ;
35
38
//~^ ERROR mismatched types
36
39
//~| expected type `usize`
37
40
//~| found type `&'static str`
38
41
//~| 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`
40
44
let f = [ 0 ; -4_isize ] ;
41
45
//~^ ERROR constant evaluation error
42
46
//~| expected usize, found isize
@@ -55,5 +59,6 @@ fn main() {
55
59
//~| expected type `usize`
56
60
//~| found type `main::G`
57
61
//~| 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`
59
64
}
0 commit comments