]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error[E0599]: no method named `f` found for unit type `()` in the current scope |
0731742a | 2 | --> $DIR/shadowed-trait-methods.rs:13:8 |
94b46f34 | 3 | | |
cdc7bbd5 XL |
4 | LL | pub trait T { fn f(&self) {} } |
5 | | - the method is available for `()` here | |
6 | ... | |
532ac7d7 | 7 | LL | ().f() |
e1599b0c | 8 | | ^ method not found in `()` |
94b46f34 XL |
9 | | |
10 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 11 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: |
94b46f34 | 12 | | |
b7449926 | 13 | LL | use foo::T; |
94b46f34 XL |
14 | | |
15 | ||
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0599`. |