Skip to content

Commit b5c2470

Browse files
committed
Update new ui tests
1 parent 25b6267 commit b5c2470

12 files changed

+54
-52
lines changed

src/test/ui/bad/bad-mid-path-type-params.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
error[E0087]: too many type parameters provided: expected at most 1 type parameter, found 2 type parameters
2-
--> $DIR/bad-mid-path-type-params.rs:40:28
1+
error[E0087]: wrong number of type arguments: expected 1, found 2
2+
--> $DIR/bad-mid-path-type-params.rs:40:13
33
|
44
LL | let _ = S::new::<isize,f64>(1, 1.0);
5-
| ^^^ expected 1 type parameter
5+
| ^^^^^^^^^^^^^^^^^^^ unexpected type argument
66

7-
error[E0107]: wrong number of lifetime parameters: expected 0, found 1
7+
error[E0107]: wrong number of lifetime arguments: expected 0, found 1
88
--> $DIR/bad-mid-path-type-params.rs:43:13
99
|
1010
LL | let _ = S::<'a,isize>::new::<f64>(1, 1.0);
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected lifetime parameter
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected lifetime argument
1212

13-
error[E0087]: too many type parameters provided: expected at most 1 type parameter, found 2 type parameters
14-
--> $DIR/bad-mid-path-type-params.rs:46:36
13+
error[E0087]: wrong number of type arguments: expected 1, found 2
14+
--> $DIR/bad-mid-path-type-params.rs:46:17
1515
|
1616
LL | let _: S2 = Trait::new::<isize,f64>(1, 1.0);
17-
| ^^^ expected 1 type parameter
17+
| ^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument
1818

19-
error[E0088]: too many lifetime parameters provided: expected at most 0 lifetime parameters, found 1 lifetime parameter
20-
--> $DIR/bad-mid-path-type-params.rs:49:25
19+
error[E0088]: wrong number of lifetime arguments: expected 0, found 1
20+
--> $DIR/bad-mid-path-type-params.rs:49:17
2121
|
2222
LL | let _: S2 = Trait::<'a,isize>::new::<f64>(1, 1.0);
23-
| ^^ expected 0 lifetime parameters
23+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected lifetime argument
2424

2525
error: aborting due to 4 previous errors
2626

src/test/ui/constructor-lifetime-args.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
error[E0090]: too few lifetime parameters provided: expected 2 lifetime parameters, found 1 lifetime parameter
1+
error[E0090]: wrong number of lifetime arguments: expected 2, found 1
22
--> $DIR/constructor-lifetime-args.rs:27:5
33
|
44
LL | S::<'static>(&0, &0);
5-
| ^^^^^^^^^^^^ expected 2 lifetime parameters
5+
| ^^^^^^^^^^^^ expected 2 lifetime arguments
66

7-
error[E0088]: too many lifetime parameters provided: expected at most 2 lifetime parameters, found 3 lifetime parameters
8-
--> $DIR/constructor-lifetime-args.rs:29:27
7+
error[E0088]: wrong number of lifetime arguments: expected 2, found 3
8+
--> $DIR/constructor-lifetime-args.rs:29:5
99
|
1010
LL | S::<'static, 'static, 'static>(&0, &0);
11-
| ^^^^^^^ expected 2 lifetime parameters
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected lifetime argument
1212

13-
error[E0090]: too few lifetime parameters provided: expected 2 lifetime parameters, found 1 lifetime parameter
13+
error[E0090]: wrong number of lifetime arguments: expected 2, found 1
1414
--> $DIR/constructor-lifetime-args.rs:32:5
1515
|
1616
LL | E::V::<'static>(&0);
17-
| ^^^^^^^^^^^^^^^ expected 2 lifetime parameters
17+
| ^^^^^^^^^^^^^^^ expected 2 lifetime arguments
1818

19-
error[E0088]: too many lifetime parameters provided: expected at most 2 lifetime parameters, found 3 lifetime parameters
20-
--> $DIR/constructor-lifetime-args.rs:34:30
19+
error[E0088]: wrong number of lifetime arguments: expected 2, found 3
20+
--> $DIR/constructor-lifetime-args.rs:34:5
2121
|
2222
LL | E::V::<'static, 'static, 'static>(&0);
23-
| ^^^^^^^ expected 2 lifetime parameters
23+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected lifetime argument
2424

2525
error: aborting due to 4 previous errors
2626

src/test/ui/generic/generic-impl-more-params-with-defaults.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0244]: wrong number of type arguments: expected at most 2, found 3
22
--> $DIR/generic-impl-more-params-with-defaults.rs:23:5
33
|
44
LL | Vec::<isize, Heap, bool>::new();
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at most 2 type arguments
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at most 2 type argument
66

77
error: aborting due to previous error
88

src/test/ui/issue-53251.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ macro_rules! impl_add {
1919
$(
2020
fn $n() {
2121
S::f::<i64>();
22-
//~^ ERROR too many type parameters provided
22+
//~^ ERROR wrong number of type arguments
2323
}
2424
)*
2525
}
2626
}
2727

2828
impl_add!(a b);
29+
30+
fn main() {}

src/test/ui/methods/method-call-lifetime-args-fail.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
error[E0090]: too few lifetime parameters provided: expected 2 lifetime parameters, found 1 lifetime parameter
1+
error[E0090]: wrong number of lifetime arguments: expected 2, found 1
22
--> $DIR/method-call-lifetime-args-fail.rs:26:7
33
|
44
LL | S.early::<'static>();
5-
| ^^^^^ expected 2 lifetime parameters
5+
| ^^^^^ expected 2 lifetime arguments
66

7-
error[E0088]: too many lifetime parameters provided: expected at most 2 lifetime parameters, found 3 lifetime parameters
8-
--> $DIR/method-call-lifetime-args-fail.rs:28:33
7+
error[E0088]: wrong number of lifetime arguments: expected 2, found 3
8+
--> $DIR/method-call-lifetime-args-fail.rs:28:7
99
|
1010
LL | S.early::<'static, 'static, 'static>();
11-
| ^^^^^^^ expected 2 lifetime parameters
11+
| ^^^^^ unexpected lifetime argument
1212

1313
error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
1414
--> $DIR/method-call-lifetime-args-fail.rs:37:15
@@ -178,17 +178,17 @@ note: the late bound lifetime parameter is introduced here
178178
LL | fn late_unused_early<'a, 'b>(self) -> &'b u8 { loop {} }
179179
| ^^
180180

181-
error[E0090]: too few lifetime parameters provided: expected 2 lifetime parameters, found 1 lifetime parameter
181+
error[E0090]: wrong number of lifetime arguments: expected 2, found 1
182182
--> $DIR/method-call-lifetime-args-fail.rs:73:5
183183
|
184184
LL | S::early::<'static>(S);
185-
| ^^^^^^^^^^^^^^^^^^^ expected 2 lifetime parameters
185+
| ^^^^^^^^^^^^^^^^^^^ expected 2 lifetime arguments
186186

187-
error[E0088]: too many lifetime parameters provided: expected at most 2 lifetime parameters, found 3 lifetime parameters
188-
--> $DIR/method-call-lifetime-args-fail.rs:75:34
187+
error[E0088]: wrong number of lifetime arguments: expected 2, found 3
188+
--> $DIR/method-call-lifetime-args-fail.rs:75:5
189189
|
190190
LL | S::early::<'static, 'static, 'static>(S);
191-
| ^^^^^^^ expected 2 lifetime parameters
191+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected lifetime argument
192192

193193
error: aborting due to 18 previous errors
194194

src/test/ui/seq-args.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ error[E0244]: wrong number of type arguments: expected 0, found 1
22
--> $DIR/seq-args.rs:14:9
33
|
44
LL | impl<T> seq<T> for Vec<T> { //~ ERROR wrong number of type arguments
5-
| ^^^^^^ expected no type arguments
5+
| ^^^^^^ unexpected type argument
66

77
error[E0244]: wrong number of type arguments: expected 0, found 1
88
--> $DIR/seq-args.rs:17:6
99
|
1010
LL | impl seq<bool> for u32 { //~ ERROR wrong number of type arguments
11-
| ^^^^^^^^^ expected no type arguments
11+
| ^^^^^^^^^ unexpected type argument
1212

1313
error: aborting due to 2 previous errors
1414

src/test/ui/structs/structure-constructor-type-mismatch.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ error[E0244]: wrong number of type arguments: expected 0, found 1
7474
--> $DIR/structure-constructor-type-mismatch.rs:58:15
7575
|
7676
LL | let pt3 = PointF::<i32> { //~ ERROR wrong number of type arguments
77-
| ^^^^^^^^^^^^^ expected no type arguments
77+
| ^^^^^^^^^^^^^ unexpected type argument
7878

7979
error[E0308]: mismatched types
8080
--> $DIR/structure-constructor-type-mismatch.rs:59:12
@@ -104,7 +104,7 @@ error[E0244]: wrong number of type arguments: expected 0, found 1
104104
--> $DIR/structure-constructor-type-mismatch.rs:64:9
105105
|
106106
LL | PointF::<u32> { .. } => {} //~ ERROR wrong number of type arguments
107-
| ^^^^^^^^^^^^^ expected no type arguments
107+
| ^^^^^^^^^^^^^ unexpected type argument
108108

109109
error[E0308]: mismatched types
110110
--> $DIR/structure-constructor-type-mismatch.rs:64:9

src/test/ui/traits/trait-object-vs-lifetime.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ error[E0224]: at least one non-builtin trait is required for an object type
1010
LL | let _: S<'static, 'static +>;
1111
| ^^^^^^^^^
1212

13-
error[E0107]: wrong number of lifetime parameters: expected 1, found 2
13+
error[E0107]: wrong number of lifetime arguments: expected 1, found 2
1414
--> $DIR/trait-object-vs-lifetime.rs:23:12
1515
|
1616
LL | let _: S<'static, 'static>;
17-
| ^^^^^^^^^^^^^^^^^^^ unexpected lifetime parameter
17+
| ^^^^^^^^^^^^^^^^^^^ unexpected lifetime argument
1818

1919
error[E0243]: wrong number of type arguments: expected 1, found 0
2020
--> $DIR/trait-object-vs-lifetime.rs:23:12

src/test/ui/traits/trait-test-2.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
error[E0087]: too many type parameters provided: expected at most 0 type parameters, found 1 type parameter
2-
--> $DIR/trait-test-2.rs:18:14
1+
error[E0087]: wrong number of type arguments: expected 0, found 1
2+
--> $DIR/trait-test-2.rs:18:8
33
|
4-
LL | 10.dup::<i32>(); //~ ERROR expected at most 0 type parameters, found 1 type parameter
5-
| ^^^ expected 0 type parameters
4+
LL | 10.dup::<i32>(); //~ ERROR wrong number of type arguments: expected 0, found 1
5+
| ^^^ unexpected type argument
66

7-
error[E0087]: too many type parameters provided: expected at most 1 type parameter, found 2 type parameters
8-
--> $DIR/trait-test-2.rs:19:20
7+
error[E0087]: wrong number of type arguments: expected 1, found 2
8+
--> $DIR/trait-test-2.rs:19:8
99
|
10-
LL | 10.blah::<i32, i32>(); //~ ERROR expected at most 1 type parameter, found 2 type parameters
11-
| ^^^ expected 1 type parameter
10+
LL | 10.blah::<i32, i32>(); //~ ERROR wrong number of type arguments: expected 1, found 2
11+
| ^^^^ unexpected type argument
1212

1313
error[E0277]: the trait bound `dyn bar: bar` is not satisfied
1414
--> $DIR/trait-test-2.rs:20:26

src/test/ui/ufcs/ufcs-qpath-missing-params.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error[E0089]: too few type parameters provided: expected 1 type parameter, found 0 type parameters
1+
error[E0089]: wrong number of type arguments: expected 1, found 0
22
--> $DIR/ufcs-qpath-missing-params.rs:24:5
33
|
44
LL | <String as IntoCow>::into_cow("foo".to_string());
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 type parameter
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 type argument
66

77
error: aborting due to previous error
88

src/test/ui/unboxed-closures/unboxed-closure-sugar-region.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error[E0107]: wrong number of lifetime parameters: expected 1, found 0
1+
error[E0107]: wrong number of lifetime arguments: expected 1, found 0
22
--> $DIR/unboxed-closure-sugar-region.rs:40:43
33
|
44
LL | fn test2(x: &Foo<(isize,),Output=()>, y: &Foo(isize)) {
5-
| ^^^^^^^^^^ expected 1 lifetime parameter
5+
| ^^^^^^^^^^ expected 1 lifetime argument
66

77
error: aborting due to previous error
88

src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0244]: wrong number of type arguments: expected 0, found 1
22
--> $DIR/unboxed-closure-sugar-wrong-number-number-type-parameters.rs:15:11
33
|
44
LL | fn foo(_: Zero())
5-
| ^^^^^^ expected no type arguments
5+
| ^^^^^^ unexpected type argument
66

77
error[E0220]: associated type `Output` not found for `Zero`
88
--> $DIR/unboxed-closure-sugar-wrong-number-number-type-parameters.rs:15:15

0 commit comments

Comments
 (0)