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