Skip to content

Commit a903ac5

Browse files
fix issue-110629-private-type-cycle-dyn test
1 parent a54a668 commit a903ac5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when expanding type alias `Bar`
44
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
55
| ^^^^^^^^^^^
66
|
7-
note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
8-
--> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38
9-
|
10-
LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
11-
| ^^^^^^^^^^^
127
= note: ...which immediately requires expanding type alias `Bar` again
138
= note: type aliases cannot be recursive
149
= help: consider using a struct, enum, or union instead to break the cycle
@@ -24,6 +19,7 @@ LL | | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
2419
LL | | assert!(bar(&meh) == bar(&muh));
2520
LL | | }
2621
| |_^
22+
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
2723

2824
error: aborting due to previous error
2925

0 commit comments

Comments
 (0)