Skip to content

Commit 7ef0050

Browse files
committed
Bless ui/associated-consts/issue-93835
Beta-backporting rust-lang#140228 has the same effect on this test as rust-lang#139341 already had on master.
1 parent 2aec882 commit 7ef0050

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

tests/ui/associated-consts/issue-93835.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
fn e() {
44
type_ascribe!(p, a<p:p<e=6>>);
55
//~^ ERROR cannot find type `a` in this scope
6-
//~| ERROR path separator must be a double colon
76
//~| ERROR cannot find value
87
//~| ERROR associated const equality
8+
//~| ERROR cannot find trait `p` in this scope
99
//~| ERROR associated const equality
10-
//~| ERROR failed to resolve: use of unresolved module or unlinked crate `p`
1110
}
1211

1312
fn main() {}
+9-23
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
error: path separator must be a double colon
2-
--> $DIR/issue-93835.rs:4:25
3-
|
4-
LL | type_ascribe!(p, a<p:p<e=6>>);
5-
| ^
6-
|
7-
= note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
8-
help: use a double colon instead
9-
|
10-
LL | type_ascribe!(p, a<p::p<e=6>>);
11-
| +
12-
131
error[E0425]: cannot find value `p` in this scope
142
--> $DIR/issue-93835.rs:4:19
153
|
@@ -22,6 +10,12 @@ error[E0412]: cannot find type `a` in this scope
2210
LL | type_ascribe!(p, a<p:p<e=6>>);
2311
| ^ not found in this scope
2412

13+
error[E0405]: cannot find trait `p` in this scope
14+
--> $DIR/issue-93835.rs:4:26
15+
|
16+
LL | type_ascribe!(p, a<p:p<e=6>>);
17+
| ^ not found in this scope
18+
2519
error[E0658]: associated const equality is incomplete
2620
--> $DIR/issue-93835.rs:4:28
2721
|
@@ -43,15 +37,7 @@ LL | type_ascribe!(p, a<p:p<e=6>>);
4337
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4438
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
4539

46-
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `p`
47-
--> $DIR/issue-93835.rs:4:24
48-
|
49-
LL | type_ascribe!(p, a<p:p<e=6>>);
50-
| ^ use of unresolved module or unlinked crate `p`
51-
|
52-
= help: you might be missing a crate named `p`
53-
54-
error: aborting due to 6 previous errors
40+
error: aborting due to 5 previous errors
5541

56-
Some errors have detailed explanations: E0412, E0425, E0433, E0658.
57-
For more information about an error, try `rustc --explain E0412`.
42+
Some errors have detailed explanations: E0405, E0412, E0425, E0658.
43+
For more information about an error, try `rustc --explain E0405`.

0 commit comments

Comments
 (0)