]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/trait_items.stderr
4192b97e750690641087bf1bc52521583c41e73f
[rust.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    |                        ^
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`.