]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/no_implicit_prelude.stderr
Give method not found a primary span label
[rust.git] / src / test / ui / hygiene / no_implicit_prelude.stderr
1 error: cannot find macro `panic!` in this scope
2   --> $DIR/no_implicit_prelude.rs:16:9
3    |
4 LL |         assert_eq!(0, 0);
5    |         ^^^^^^^^^^^^^^^^^
6    |
7    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
8
9 error[E0433]: failed to resolve: use of undeclared type or module `Vec`
10   --> $DIR/no_implicit_prelude.rs:11:9
11    |
12 LL |     fn f() { ::bar::m!(); }
13    |              ------------ in this macro invocation
14 ...
15 LL |         Vec::new();
16    |         ^^^ use of undeclared type or module `Vec`
17
18 error[E0599]: no method named `clone` found for type `()` in the current scope
19   --> $DIR/no_implicit_prelude.rs:12:12
20    |
21 LL |     fn f() { ::bar::m!(); }
22    |              ------------ in this macro invocation
23 ...
24 LL |         ().clone()
25    |            ^^^^^ method not found in `()`
26    |
27    = help: items from traits can only be used if the trait is in scope
28    = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
29            `use std::clone::Clone;`
30
31 error: aborting due to 3 previous errors
32
33 Some errors have detailed explanations: E0433, E0599.
34 For more information about an error, try `rustc --explain E0433`.