fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
707 B17 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() { ::baz::m!(); }
5   |              ------------ in this macro invocation
6...
7LL |     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   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0599`.