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
21 #[derive(generate_mod::CheckDerive)] //~ ERROR cannot find type `FromOutside` in this scope
22 //~| ERROR cannot find type `OuterDerive` in this scope
26 #[derive(generate_mod::CheckDeriveLint)] //~ ERROR cannot find type `OuterDeriveLint` in this scope
27 //~| ERROR cannot find type `FromOutside` in this scope