@@ -8,7 +8,7 @@ LL | (0..13).collect<Vec<i32>>();
8
8
= help: or use `(...)` if you meant to specify fn arguments
9
9
10
10
error: chained comparison operators require parentheses
11
- --> $DIR/issue-40396.rs:10 :8
11
+ --> $DIR/issue-40396.rs:7 :8
12
12
|
13
13
LL | Vec<i32>::new();
14
14
| ^^^^^^^
@@ -17,87 +17,13 @@ LL | Vec<i32>::new();
17
17
= help: or use `(...)` if you meant to specify fn arguments
18
18
19
19
error: chained comparison operators require parentheses
20
- --> $DIR/issue-40396.rs:18 :20
20
+ --> $DIR/issue-40396.rs:12 :20
21
21
|
22
22
LL | (0..13).collect<Vec<i32>();
23
23
| ^^^^^^^^
24
24
|
25
25
= help: use `::<...>` instead of `<...>` if you meant to specify type arguments
26
26
= help: or use `(...)` if you meant to specify fn arguments
27
27
28
- error: chained comparison operators require parentheses
29
- --> $DIR/issue-40396.rs:18:24
30
- |
31
- LL | (0..13).collect<Vec<i32>();
32
- | ^^^^^^
33
- |
34
- = help: use `::<...>` instead of `<...>` if you meant to specify type arguments
35
- = help: or use `(...)` if you meant to specify fn arguments
36
-
37
- error[E0423]: expected value, found struct `Vec`
38
- --> $DIR/issue-40396.rs:2:21
39
- |
40
- LL | (0..13).collect<Vec<i32>>();
41
- | ^^^ did you mean `Vec { /* fields */ }`?
42
-
43
- error[E0423]: expected value, found builtin type `i32`
44
- --> $DIR/issue-40396.rs:2:25
45
- |
46
- LL | (0..13).collect<Vec<i32>>();
47
- | ^^^ not a value
48
-
49
- error[E0423]: expected value, found struct `Vec`
50
- --> $DIR/issue-40396.rs:10:5
51
- |
52
- LL | Vec<i32>::new();
53
- | ^^^ did you mean `Vec { /* fields */ }`?
54
-
55
- error[E0423]: expected value, found builtin type `i32`
56
- --> $DIR/issue-40396.rs:10:9
57
- |
58
- LL | Vec<i32>::new();
59
- | ^^^ not a value
60
-
61
- error[E0425]: cannot find function `new` in the crate root
62
- --> $DIR/issue-40396.rs:10:15
63
- |
64
- LL | Vec<i32>::new();
65
- | ^^^ not found in the crate root
66
-
67
- error[E0423]: expected value, found struct `Vec`
68
- --> $DIR/issue-40396.rs:18:21
69
- |
70
- LL | (0..13).collect<Vec<i32>();
71
- | ^^^ did you mean `Vec { /* fields */ }`?
72
-
73
- error[E0423]: expected value, found builtin type `i32`
74
- --> $DIR/issue-40396.rs:18:25
75
- |
76
- LL | (0..13).collect<Vec<i32>();
77
- | ^^^ not a value
78
-
79
- error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>`
80
- --> $DIR/issue-40396.rs:2:13
81
- |
82
- LL | (0..13).collect<Vec<i32>>();
83
- | ^^^^^^^ help: use parentheses to call the method: `collect()`
84
-
85
- error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>`
86
- --> $DIR/issue-40396.rs:18:13
87
- |
88
- LL | (0..13).collect<Vec<i32>();
89
- | ^^^^^^^ help: use parentheses to call the method: `collect()`
90
-
91
- error[E0308]: mismatched types
92
- --> $DIR/issue-40396.rs:18:29
93
- |
94
- LL | (0..13).collect<Vec<i32>();
95
- | ^^ expected bool, found ()
96
- |
97
- = note: expected type `bool`
98
- found type `()`
99
-
100
- error: aborting due to 14 previous errors
28
+ error: aborting due to 3 previous errors
101
29
102
- Some errors have detailed explanations: E0308, E0423, E0425, E0615.
103
- For more information about an error, try `rustc --explain E0308`.
0 commit comments