]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/use/use-from-trait-xc.stderr
clarify what the item is in "not a module" error
[rust.git] / src / test / ui / use / use-from-trait-xc.stderr
index 8ff75b503d5ae97a310e8337055b3bdc7e535948..faa4829bfdd6238ac6e28b63d5bc404b5502e706 100644 (file)
@@ -19,20 +19,20 @@ LL | use use_from_trait_xc::Trait::CONST;
 error[E0432]: unresolved import `use_from_trait_xc::Foo`
   --> $DIR/use-from-trait-xc.rs:14:24
    |
-LL | use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
-   |                        ^^^ not a module `Foo`
+LL | use use_from_trait_xc::Foo::new;
+   |                        ^^^ `Foo` is a struct, not a module
 
 error[E0432]: unresolved import `use_from_trait_xc::Foo`
   --> $DIR/use-from-trait-xc.rs:17:24
    |
-LL | use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
-   |                        ^^^ not a module `Foo`
+LL | use use_from_trait_xc::Foo::C;
+   |                        ^^^ `Foo` is a struct, not a module
 
 error[E0432]: unresolved import `use_from_trait_xc::Bar`
   --> $DIR/use-from-trait-xc.rs:20:24
    |
 LL | use use_from_trait_xc::Bar::new as bnew;
-   |                        ^^^ not a module `Bar`
+   |                        ^^^ `Bar` is a struct, not a module
 
 error[E0432]: unresolved import `use_from_trait_xc::Baz::new`
   --> $DIR/use-from-trait-xc.rs:23:5
@@ -43,13 +43,13 @@ LL | use use_from_trait_xc::Baz::new as baznew;
 error[E0603]: struct `Foo` is private
   --> $DIR/use-from-trait-xc.rs:14:24
    |
-LL | use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
+LL | use use_from_trait_xc::Foo::new;
    |                        ^^^
 
 error[E0603]: struct `Foo` is private
   --> $DIR/use-from-trait-xc.rs:17:24
    |
-LL | use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
+LL | use use_from_trait_xc::Foo::C;
    |                        ^^^
 
 error: aborting due to 9 previous errors