]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/no_implicit_prelude.stderr
Add examples for `pointer::mask`
[rust.git] / src / test / ui / hygiene / no_implicit_prelude.stderr
1 error[E0433]: failed to resolve: use of undeclared type `Vec`
2   --> $DIR/no_implicit_prelude.rs:11:9
3    |
4 LL |     fn f() { ::bar::m!(); }
5    |              ----------- in this macro invocation
6 ...
7 LL |         Vec::new();
8    |         ^^^ not found in this scope
9    |
10    = note: this error originates in the macro `::bar::m` (in Nightly builds, run with -Z macro-backtrace for more info)
11 help: consider importing this struct
12    |
13 LL |     use std::vec::Vec;
14    |
15
16 error[E0599]: no method named `clone` found for unit type `()` in the current scope
17   --> $DIR/no_implicit_prelude.rs:12:12
18    |
19 LL |     fn f() { ::bar::m!(); }
20    |              ----------- in this macro invocation
21 ...
22 LL |         ().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)
27 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
28    |
29 LL |     use std::clone::Clone;
30    |
31
32 error: aborting due to 2 previous errors
33
34 Some errors have detailed explanations: E0433, E0599.
35 For more information about an error, try `rustc --explain E0433`.