]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/stdlib-prelude-from-opaque-late.rs
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / stdlib-prelude-from-opaque-late.rs
1 // check-pass
2
3 #![feature(decl_macro)]
4
5 macro mac() {
6     mod m {
7         fn f() {
8             std::mem::drop(0); // OK (extern prelude)
9             drop(0); // OK (stdlib prelude)
10         }
11     }
12 }
13
14 mac!();
15
16 fn main() {}