]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-43189.stderr
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / ui / typeck / issue-43189.stderr
1 error[E0599]: no method named `a` found for unit type `()` in the current scope
2   --> $DIR/issue-43189.rs:10:8
3    |
4 LL |     ().a();
5    |        ^ method not found in `()`
6    |
7   ::: $DIR/auxiliary/xcrate-issue-43189-a.rs:5:8
8    |
9 LL |     fn a(&self) {}
10    |        - the method is available for `()` here
11    |
12    = help: items from traits can only be used if the trait is in scope
13 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
14    |
15 LL | use xcrate_issue_43189_b::xcrate_issue_43189_a::A;
16    |
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0599`.