1
1
error[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
3
3
|
4
4
LL | let arc = std::sync::Arc::new(oops);
5
5
| ^^^^ not found in this scope
6
6
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
22
9
|
23
10
LL | arc2.bar();
24
- | ^^^ method not found in `Arc<[
[email protected] :
22 :36]>`
11
+ | ^^^ method not found in `Arc<[
[email protected] :
18 :36]>`
25
12
|
26
13
= help: items from traits can only be used if the trait is implemented and in scope
27
14
note: `Bar` defines an item `bar`, perhaps you need to implement it
@@ -34,7 +21,7 @@ help: use parentheses to call this closure
34
21
LL | arc2().bar();
35
22
| ++
36
23
37
- error: aborting due to 3 previous errors
24
+ error: aborting due to 2 previous errors
38
25
39
26
Some errors have detailed explanations: E0425, E0599.
40
27
For more information about an error, try `rustc --explain E0425`.
0 commit comments