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