]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/inference-cycle.stderr
Report cycle error using 'deepest' obligation in the cycle
[rust.git] / src / test / ui / type-alias-impl-trait / inference-cycle.stderr
index ac0ca8e048cb076557724f76d77cb4cc17d4f506..4c5921c7f660ba6d51d9943008ababc928b1da19 100644 (file)
@@ -5,10 +5,10 @@ LL |     type Foo = impl std::fmt::Debug;
    |                ^^^^^^^^^^^^^^^^^^^^
    |
 note: ...which requires type-checking `m::bar`...
-  --> $DIR/inference-cycle.rs:14:5
+  --> $DIR/inference-cycle.rs:15:9
    |
-LL |     pub fn bar() {
-   |     ^^^^^^^^^^^^
+LL |         is_send(foo()); // Today: error
+   |         ^^^^^^^
    = note: ...which requires evaluating trait selection obligation `impl std::fmt::Debug: std::marker::Send`...
    = note: ...which again requires computing type of `m::Foo::{opaque#0}`, completing the cycle
 note: cycle used when checking item types in module `m`