]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/cross-crate-name-hiding-2.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / hygiene / cross-crate-name-hiding-2.rs
1 // Check that an identifier from a 2.0 macro in another crate cannot be
2 // resolved with an identifier that's not from a macro expansion.
3
4 // aux-build:use_by_macro.rs
5
6 extern crate use_by_macro;
7
8 use use_by_macro::*;
9
10 my_struct!(define);
11
12 fn main() {
13     let x = MyStruct {};
14     //~^ ERROR cannot find struct, variant or union type `MyStruct` in this scope
15 }