]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/trait_items.stderr
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccjit-codegen
[rust.git] / src / test / ui / hygiene / trait_items.stderr
1 error[E0599]: no method named `f` found for unit type `()` in the current scope
2   --> $DIR/trait_items.rs:17:24
3    |
4 LL |         fn f(&self) {}
5    |            - the method is available for `()` here
6 ...
7 LL |     fn f() { ::baz::m!(); }
8    |              ------------ in this macro invocation
9 ...
10 LL |     pub macro m() { ().f() }
11    |                        ^ method not found in `()`
12    |
13    = help: items from traits can only be used if the trait is in scope
14    = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
15            `use foo::T;`
16    = note: this error originates in the macro `::baz::m` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0599`.