1 // Make sure that underscore imports have the same hygiene considerations as
4 #![feature(decl_macro)]
7 pub use std::ops::Deref as _;
15 macro underscore_import() {
16 use std::ops::DerefMut as _;
20 crate::glob_import!();
21 crate::underscore_import!();
24 macro create_module($y:ident) {
26 crate::glob_import!();
27 crate::underscore_import!();
38 (&()).deref(); //~ ERROR no method named `deref`
39 (&mut ()).deref_mut(); //~ ERROR no method named `deref_mut`