]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-56175.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-56175.stderr
1 error[E0599]: no method named `trait_method` found for struct `FooStruct` in the current scope
2   --> $DIR/issue-56175.rs:5:33
3    |
4 LL |     reexported_trait::FooStruct.trait_method();
5    |                                 ^^^^^^^^^^^^ method not found in `FooStruct`
6    |
7   ::: $DIR/auxiliary/reexported-trait.rs:3:12
8    |
9 LL |         fn trait_method(&self) {
10    |            ------------ the method is available for `FooStruct` 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 reexported_trait::Trait;
16    |
17
18 error[E0599]: no method named `trait_method_b` found for struct `FooStruct` in the current scope
19   --> $DIR/issue-56175.rs:7:33
20    |
21 LL |     reexported_trait::FooStruct.trait_method_b();
22    |                                 ^^^^^^^^^^^^^^ method not found in `FooStruct`
23    |
24   ::: $DIR/auxiliary/reexported-trait.rs:7:12
25    |
26 LL |         fn trait_method_b(&self) {
27    |            -------------- the method is available for `FooStruct` here
28    |
29    = help: items from traits can only be used if the trait is in scope
30 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
31    |
32 LL | use reexported_trait::TraitBRename;
33    |
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0599`.