fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
808 B22 linesraw
1error[E0599]: no method named `f` found for unit type `()` in the current scope
2  --> $DIR/trait_items.rs:17:24
3   |
4LL |         fn f(&self) {}
5   |            - the method is available for `()` here
6...
7LL |     fn f() { ::baz::m!(); }
8   |              ----------- in this macro invocation
9...
10LL |     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: this error originates in the macro `::baz::m` (in Nightly builds, run with -Z macro-backtrace for more info)
15help: the following trait is implemented but not in scope; perhaps add a `use` for it:
16   |
17LL +     use foo::T;
18   |
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0599`.