From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/inference/issue-80816.stderr | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/ui/inference/issue-80816.stderr (limited to 'tests/ui/inference/issue-80816.stderr') diff --git a/tests/ui/inference/issue-80816.stderr b/tests/ui/inference/issue-80816.stderr new file mode 100644 index 000000000..80c0c8abe --- /dev/null +++ b/tests/ui/inference/issue-80816.stderr @@ -0,0 +1,29 @@ +error[E0283]: type annotations needed + --> $DIR/issue-80816.rs:50:38 + | +LL | let guard: Guard> = s.load(); + | ^^^^ + | +note: multiple `impl`s satisfying `ArcSwapAny>: Access<_>` found + --> $DIR/issue-80816.rs:36:1 + | +LL | impl Access for ArcSwapAny { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +... +LL | impl Access for ArcSwapAny> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +note: required for `Arc>>` to implement `Access<_>` + --> $DIR/issue-80816.rs:31:45 + | +LL | impl, P: Deref> Access for P { + | --------- ^^^^^^^^^ ^ + | | + | unsatisfied trait bound introduced here +help: try using a fully qualified path to specify the expected types + | +LL | let guard: Guard> = >> as Access>::load(&s); + | ++++++++++++++++++++++++++++++++++++++++++++++++++ ~ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0283`. -- cgit v1.2.3