fork/rust

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

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

master
1.2 KiB35 linesraw
1error[E0433]: failed to resolve: use of undeclared type `Vec`
2  --> $DIR/no_implicit_prelude.rs:11:9
3   |
4LL |     fn f() { ::bar::m!(); }
5   |              ----------- in this macro invocation
6...
7LL |         Vec::new();
8   |         ^^^ use of undeclared type `Vec`
9   |
10   = note: this error originates in the macro `::bar::m` (in Nightly builds, run with -Z macro-backtrace for more info)
11help: consider importing this struct
12   |
13LL +     use std::vec::Vec;
14   |
15
16error[E0599]: no method named `clone` found for unit type `()` in the current scope
17  --> $DIR/no_implicit_prelude.rs:12:12
18   |
19LL |     fn f() { ::bar::m!(); }
20   |              ----------- in this macro invocation
21...
22LL |         ().clone()
23   |            ^^^^^ method not found in `()`
24   |
25   = help: items from traits can only be used if the trait is in scope
26   = note: this error originates in the macro `::bar::m` (in Nightly builds, run with -Z macro-backtrace for more info)
27help: the following trait is implemented but not in scope; perhaps add a `use` for it:
28   |
29LL +     use std::clone::Clone;
30   |
31
32error: aborting due to 2 previous errors
33
34Some errors have detailed explanations: E0433, E0599.
35For more information about an error, try `rustc --explain E0433`.