fork/rust

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

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

master
965 B27 linesraw
1error[E0425]: cannot find value `oops` in this scope
2  --> $DIR/fn-help-with-err.rs:13:35
3   |
4LL |     let arc = std::sync::Arc::new(oops);
5   |                                   ^^^^ not found in this scope
6
7error[E0599]: no method named `bar` found for struct `Arc<{closure@$DIR/fn-help-with-err.rs:18:36: 18:38}>` in the current scope
8  --> $DIR/fn-help-with-err.rs:19:10
9   |
10LL |     arc2.bar();
11   |          ^^^ method not found in `Arc<{closure@fn-help-with-err.rs:18:36}>`
12   |
13   = help: items from traits can only be used if the trait is implemented and in scope
14note: `Bar` defines an item `bar`, perhaps you need to implement it
15  --> $DIR/fn-help-with-err.rs:5:1
16   |
17LL | trait Bar {
18   | ^^^^^^^^^
19help: use parentheses to call this closure
20   |
21LL |     arc2().bar();
22   |         ++
23
24error: aborting due to 2 previous errors
25
26Some errors have detailed explanations: E0425, E0599.
27For more information about an error, try `rustc --explain E0425`.