]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hygiene/trait_items.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / hygiene / trait_items.stderr
1 error[E0599]: no method named `f` found for type `()` in the current scope
2 --> $DIR/trait_items.rs:17:24
3 |
4 LL | fn f() { ::baz::m!(); }
5 | ------------ in this macro invocation
6 ...
7 LL | pub macro m() { ().f() }
8 | ^ method not found in `()`
9 |
10 = help: items from traits can only be used if the trait is in scope
11 = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
12 `use foo::T;`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0599`.