fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB29 linesraw
1error[E0283]: type annotations needed
2  --> $DIR/issue-80816.rs:50:38
3   |
4LL |     let guard: Guard<Arc<usize>> = s.load();
5   |                                      ^^^^
6   |
7note: multiple `impl`s satisfying `ArcSwapAny<Arc<usize>>: Access<_>` found
8  --> $DIR/issue-80816.rs:36:1
9   |
10LL | impl<T> Access<T> for ArcSwapAny<T> {
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12...
13LL | impl<T> Access<T> for ArcSwapAny<Arc<T>> {
14   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15note: required for `Arc<ArcSwapAny<Arc<usize>>>` to implement `Access<_>`
16  --> $DIR/issue-80816.rs:31:45
17   |
18LL | impl<T, A: Access<T>, P: Deref<Target = A>> Access<T> for P {
19   |            ---------                        ^^^^^^^^^     ^
20   |            |
21   |            unsatisfied trait bound introduced here
22help: try using a fully qualified path to specify the expected types
23   |
24LL |     let guard: Guard<Arc<usize>> = <Arc<ArcSwapAny<Arc<usize>>> as Access<T>>::load(&s);
25   |                                    ++++++++++++++++++++++++++++++++++++++++++++++++++ ~
26
27error: aborting due to previous error
28
29For more information about this error, try `rustc --explain E0283`.