diff options
Diffstat (limited to 'tests/ui/privacy/sealed-traits/re-exported-trait.fixed')
-rw-r--r-- | tests/ui/privacy/sealed-traits/re-exported-trait.fixed | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/privacy/sealed-traits/re-exported-trait.fixed b/tests/ui/privacy/sealed-traits/re-exported-trait.fixed new file mode 100644 index 000000000..79b6a6516 --- /dev/null +++ b/tests/ui/privacy/sealed-traits/re-exported-trait.fixed @@ -0,0 +1,13 @@ +// run-rustfix + +pub mod a { + pub use self::b::Trait; + mod b { + pub trait Trait {} + } +} + +struct S; +impl a::Trait for S {} //~ ERROR module `b` is private + +fn main() {} |