]> git.lizzy.rs Git - rust.git/blob - src/test/ui/functions-closures/fn-help-with-err.stderr
Rollup merge of #100730 - CleanCut:diagnostics-rustc_monomorphize, r=davidtwco
[rust.git] / src / test / ui / functions-closures / fn-help-with-err.stderr
1 error[E0425]: cannot find value `oops` in this scope
2   --> $DIR/fn-help-with-err.rs:14:35
3    |
4 LL |     let arc = std::sync::Arc::new(oops);
5    |                                   ^^^^ not found in this scope
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<[closure@$DIR/fn-help-with-err.rs:22:36: 22:38]>` in the current scope
21   --> $DIR/fn-help-with-err.rs:23:10
22    |
23 LL |     arc2.bar();
24    |          ^^^ method not found in `Arc<[closure@$DIR/fn-help-with-err.rs:22:36: 22:38]>`
25    |
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
29    |
30 LL | trait Bar {
31    | ^^^^^^^^^
32 help: use parentheses to call this closure
33    |
34 LL |     arc2().bar();
35    |         ++
36
37 error: aborting due to 3 previous errors
38
39 Some errors have detailed explanations: E0425, E0599.
40 For more information about an error, try `rustc --explain E0425`.