about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authornxya <nathacutlan@gmail.com>2023-07-19 10:02:15 -0400
committernxya <nathacutlan@gmail.com>2023-07-19 10:02:15 -0400
commita903ac5124b8fe8c91b80fe8a6cb16bc784efbd5 (patch)
tree1a495c8d1786fee7c4d1ad50c0539a331e8de1be /tests
parenta54a66830db71252f56ac851b9d03e4d8a9d75f4 (diff)
downloadrust-a903ac5124b8fe8c91b80fe8a6cb16bc784efbd5.tar.gz
rust-a903ac5124b8fe8c91b80fe8a6cb16bc784efbd5.zip
fix issue-110629-private-type-cycle-dyn test
Diffstat (limited to 'tests')
-rw-r--r--tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr b/tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr
index 777b4c46798..9aeb3389e2d 100644
--- a/tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr
+++ b/tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.stderr
@@ -4,11 +4,6 @@ error[E0391]: cycle detected when expanding type alias `Bar`
 LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
    |                                      ^^^^^^^^^^^
    |
-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
-  --> $DIR/issue-110629-private-type-cycle-dyn.rs:1:38
-   |
-LL | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
-   |                                      ^^^^^^^^^^^
    = note: ...which immediately requires expanding type alias `Bar` again
    = note: type aliases cannot be recursive
    = 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> {
 LL | |     assert!(bar(&meh) == bar(&muh));
 LL | | }
    | |_^
+   = 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
 
 error: aborting due to previous error