1 // Modules generated by transparent proc macros still acts as barriers for names (issue #50504).
3 // aux-build:generate-mod.rs
5 extern crate generate_mod;
9 generate_mod::check!(); //~ ERROR cannot find type `FromOutside` in this scope
10 //~| ERROR cannot find type `Outer` in this scope
12 #[generate_mod::check_attr] //~ ERROR cannot find type `FromOutside` in this scope
13 //~| ERROR cannot find type `OuterAttr` in this scope
16 #[derive(generate_mod::CheckDerive)] //~ ERROR cannot find type `FromOutside` in this scope
17 //~| ERROR cannot find type `OuterDerive` in this scope
18 //~| WARN this was previously accepted
19 //~| WARN this was previously accepted
23 #[derive(generate_mod::CheckDerive)] //~ ERROR cannot find type `FromOutside` in this scope
24 //~| ERROR cannot find type `OuterDerive` in this scope
25 //~| WARN this was previously accepted
26 //~| WARN this was previously accepted
30 #[derive(generate_mod::CheckDeriveLint)] // OK, lint is suppressed