]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/privacy/privacy-ns2.stderr
Auto merge of #65421 - estebank:variants, r=petrochenkov
[rust.git] / src / test / ui / privacy / privacy-ns2.stderr
index 58671addecdedbb32c46f24b4510e1b97f4f4fc5..6f54259f91867fe1cb3ce9127e0c0eaaa29c0a65 100644 (file)
@@ -1,8 +1,8 @@
-error[E0423]: expected function, found trait `Bar`
+error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
   --> $DIR/privacy-ns2.rs:20:5
    |
 LL |     Bar();
-   |     ^^^ not a function
+   |     ^^^ not a function, tuple struct or tuple variant
    |
 help: possible better candidates are found in other modules, you can import them into scope
    |
@@ -13,9 +13,12 @@ LL | use foo2::Bar;
 LL | use foo3::Bar;
    |
 
-error[E0423]: expected function, found trait `Bar`
+error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
   --> $DIR/privacy-ns2.rs:26:5
    |
+LL |     pub struct Baz;
+   |     --------------- similarly named unit struct `Baz` defined here
+...
 LL |     Bar();
    |     ^^^
    |
@@ -69,6 +72,9 @@ LL | use foo3::Bar;
 error[E0573]: expected type, found function `Bar`
   --> $DIR/privacy-ns2.rs:48:17
    |
+LL |     pub struct Baz;
+   |     --------------- similarly named struct `Baz` defined here
+...
 LL |     let _x: Box<Bar>;
    |                 ^^^
    |