about summary refs log tree commit diff
path: root/tests/ui/impl-trait
diff options
context:
space:
mode:
authorGavin Gray <gavinleroy6@gmail.com>2023-11-14 13:55:59 +0100
committerGavin Gray <gavinleroy6@gmail.com>2023-11-14 13:55:59 +0100
commitcaae1e08ecfa67f5ab3ccf8b7edf20c252c2268a (patch)
treeb5ff5a477af8787055de42d44700e07e78bde188 /tests/ui/impl-trait
parent60d99ab8837e973c0df5fe518a2ed136c8ac0f20 (diff)
downloadrust-caae1e08ecfa67f5ab3ccf8b7edf20c252c2268a.tar.gz
rust-caae1e08ecfa67f5ab3ccf8b7edf20c252c2268a.zip
Add guard checking for associated types before computing intercrate ambiguity of projections. Bless test with more specific notes on the ambiguity cause.
Diffstat (limited to 'tests/ui/impl-trait')
-rw-r--r--tests/ui/impl-trait/auto-trait-coherence.next.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/auto-trait-coherence.next.stderr b/tests/ui/impl-trait/auto-trait-coherence.next.stderr
index 7833ac688ba..cee359997b4 100644
--- a/tests/ui/impl-trait/auto-trait-coherence.next.stderr
+++ b/tests/ui/impl-trait/auto-trait-coherence.next.stderr
@@ -6,6 +6,8 @@ LL | impl<T: Send> AnotherTrait for T {}
 ...
 LL | impl AnotherTrait for D<OpaqueType> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `D<OpaqueType>`
+   |
+   = note: upstream crates may add a new impl of trait `std::marker::Send` for type `OpaqueType` in future versions
 
 error: aborting due to previous error