Skip to content

Commit 8f765fc

Browse files
committed
bless tests
1 parent bce7fe1 commit 8f765fc

File tree

6 files changed

+14
-19
lines changed

6 files changed

+14
-19
lines changed

tests/ui/associated-type-bounds/return-type-notation/path-missing.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ error[E0575]: expected method or associated constant, found associated type `A::
88
--> $DIR/path-missing.rs:12:5
99
|
1010
LL | <T as A>::bad(..): Send,
11-
| ^^^^^^^^^^^^^^^^^
12-
|
13-
= note: can't use a type alias as a constructor
11+
| ^^^^^^^^^^^^^^^^^ not a method or associated constant
1412

1513
error[E0220]: associated function `method` not found for `T`
1614
--> $DIR/path-missing.rs:19:8

tests/ui/delegation/bad-resolve.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ error[E0575]: expected method or associated constant, found associated type `Tra
4444
--> $DIR/bad-resolve.rs:27:11
4545
|
4646
LL | reuse <F as Trait>::Type;
47-
| ^^^^^^^^^^^^^^^^^^
48-
|
49-
= note: can't use a type alias as a constructor
47+
| ^^^^^^^^^^^^^^^^^^ not a method or associated constant
5048

5149
error[E0576]: cannot find method or associated constant `baz` in trait `Trait`
5250
--> $DIR/bad-resolve.rs:30:25

tests/ui/delegation/glob-non-fn.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ error[E0423]: expected function, found associated type `Trait::Type`
3838
--> $DIR/glob-non-fn.rs:30:11
3939
|
4040
LL | reuse Trait::* { &self.0 }
41-
| ^^^^^
42-
|
43-
= note: can't use a type alias as a constructor
41+
| ^^^^^ not a function
4442

4543
error[E0046]: not all trait items implemented, missing: `CONST`, `Type`, `method`
4644
--> $DIR/glob-non-fn.rs:29:1

tests/ui/namespace/namespace-mix.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ LL | pub struct TS();
77
LL | check(m1::S);
88
| ^^^^^
99
|
10-
= note: can't use a type alias as a constructor
1110
help: a tuple struct with a similar name exists
1211
|
1312
LL | check(m1::TS);
@@ -35,7 +34,6 @@ LL | check(xm1::S);
3534
LL | pub struct TS();
3635
| ------------- similarly named tuple struct `TS` defined here
3736
|
38-
= note: can't use a type alias as a constructor
3937
help: a tuple struct with a similar name exists
4038
|
4139
LL | check(xm1::TS);
@@ -61,7 +59,6 @@ LL | TV(),
6159
LL | check(m7::V);
6260
| ^^^^^
6361
|
64-
= note: can't use a type alias as a constructor
6562
help: a tuple variant with a similar name exists
6663
|
6764
LL | check(m7::TV);
@@ -89,7 +86,6 @@ LL | check(xm7::V);
8986
LL | TV(),
9087
| -- similarly named tuple variant `TV` defined here
9188
|
92-
= note: can't use a type alias as a constructor
9389
help: a tuple variant with a similar name exists
9490
|
9591
LL | check(xm7::TV);

tests/ui/resolve/tuple-struct-alias.stderr

+11-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ LL | struct S(u8, u16);
66
...
77
LL | A(..) => {}
88
| ^ help: a tuple struct with a similar name exists: `S`
9-
|
10-
= note: can't use a type alias as a constructor
119

1210
error[E0423]: expected function, tuple struct or tuple variant, found type alias `A`
1311
--> $DIR/tuple-struct-alias.rs:5:13
@@ -16,9 +14,18 @@ LL | struct S(u8, u16);
1614
| ------------------ similarly named tuple struct `S` defined here
1715
...
1816
LL | let s = A(0, 1);
19-
| ^ help: a tuple struct with a similar name exists: `S`
17+
| ^
18+
|
19+
help: a tuple struct with a similar name exists
20+
|
21+
LL - let s = A(0, 1);
22+
LL + let s = S(0, 1);
23+
|
24+
help: you might have meant to use `:` for type annotation
25+
|
26+
LL - let s = A(0, 1);
27+
LL + let s: A(0, 1);
2028
|
21-
= note: can't use a type alias as a constructor
2229

2330
error: aborting due to 2 previous errors
2431

tests/ui/ufcs/ufcs-partially-resolved.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,6 @@ LL | <u8 as Dr>::X;
235235
| ^^^^^^^^^^^^-
236236
| |
237237
| help: an associated function with a similar name exists: `Z`
238-
|
239-
= note: can't use a type alias as a constructor
240238

241239
error[E0575]: expected associated type, found associated function `Dr::Z`
242240
--> $DIR/ufcs-partially-resolved.rs:54:12

0 commit comments

Comments
 (0)