11error[E0425]: cannot find value `oops` in this scope
2- --> $DIR/fn-help-with-err.rs:14 :35
2+ --> $DIR/fn-help-with-err.rs:13 :35
33 |
44LL | let arc = std::sync::Arc::new(oops);
55 | ^^^^ not found in this scope
66
7- error[E0599]: no method named `bar` found for struct `Arc<_>` in the current scope
8- --> $DIR/fn-help-with-err.rs:17:9
9- |
10- LL | arc.bar();
11- | ^^^ method not found in `Arc<_>`
12- |
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
16- |
17- LL | trait Bar {
18- | ^^^^^^^^^
19-
20- error[E0599]: no method named `bar` found for struct `Arc<[
[email protected] :22:36]>` in the current scope
21- --> $DIR/fn-help-with-err.rs:23:10
7+ error[E0599]: no method named `bar` found for struct `Arc<[
[email protected] :18:36]>` in the current scope
8+ --> $DIR/fn-help-with-err.rs:19:10
229 |
2310LL | arc2.bar();
24- | ^^^ method not found in `Arc<[
[email protected] :
22 :36]>`
11+ | ^^^ method not found in `Arc<[
[email protected] :
18 :36]>`
2512 |
2613 = help: items from traits can only be used if the trait is implemented and in scope
2714note: `Bar` defines an item `bar`, perhaps you need to implement it
@@ -34,7 +21,7 @@ help: use parentheses to call this closure
3421LL | arc2().bar();
3522 | ++
3623
37- error: aborting due to 3 previous errors
24+ error: aborting due to 2 previous errors
3825
3926Some errors have detailed explanations: E0425, E0599.
4027For more information about an error, try `rustc --explain E0425`.
0 commit comments