]> git.proxmox.com Git - rustc.git/blame - src/test/ui/shadowed/shadowed-trait-methods.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / shadowed / shadowed-trait-methods.stderr
CommitLineData
dfeec247 1error[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
4LL | pub trait T { fn f(&self) {} }
5 | - the method is available for `()` here
6...
532ac7d7 7LL | ().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 11help: the following trait is implemented but not in scope; perhaps add a `use` for it:
94b46f34 12 |
b7449926 13LL | use foo::T;
94b46f34
XL
14 |
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0599`.