]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/privacy/where-priv-type.stderr
Auto merge of #97406 - aliemjay:verify-bounds-fix-master, r=oli-obk
[rust.git] / src / test / ui / privacy / where-priv-type.stderr
index 378c14810d92d7c82334a9acf649e15f16e32ff3..7eb71346ae9c800b6c025619e8252aa43c1c782d 100644 (file)
@@ -1,13 +1,8 @@
 warning: private type `PrivTy` in public interface (error E0446)
   --> $DIR/where-priv-type.rs:19:1
    |
-LL | / pub struct S
-LL | |
-LL | |
-LL | | where
-LL | |     PrivTy:
-LL | | {}
-   | |__^
+LL | pub struct S
+   | ^^^^^^^^^^^^
    |
    = note: `#[warn(private_in_public)]` on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
@@ -16,13 +11,8 @@ LL | | {}
 warning: private type `PrivTy` in public interface (error E0446)
   --> $DIR/where-priv-type.rs:27:1
    |
-LL | / pub enum E
-LL | |
-LL | |
-LL | | where
-LL | |     PrivTy:
-LL | | {}
-   | |__^
+LL | pub enum E
+   | ^^^^^^^^^^
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
@@ -43,17 +33,11 @@ LL | |     PrivTy:
 error[E0446]: private type `PrivTy` in public interface
   --> $DIR/where-priv-type.rs:43:1
    |
-LL |   struct PrivTy;
-   |   -------------- `PrivTy` declared as private
+LL | struct PrivTy;
+   | ------------- `PrivTy` declared as private
 ...
-LL | / impl S
-LL | |
-LL | | where
-LL | |     PrivTy:
-...  |
-LL | |     {}
-LL | | }
-   | |_^ can't leak private type
+LL | impl S
+   | ^^^^^^ can't leak private type
 
 warning: private type `PrivTy` in public interface (error E0446)
   --> $DIR/where-priv-type.rs:48:5
@@ -72,7 +56,7 @@ error[E0446]: private type `fn(u8) -> u8 {my_const_fn}` in public interface
   --> $DIR/where-priv-type.rs:80:5
    |
 LL |     type AssocTy = Const<{ my_const_fn(U) }>;
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
+   |     ^^^^^^^^^^^^ can't leak private type
 ...
 LL | const fn my_const_fn(val: u8) -> u8 {
    | ----------------------------------- `fn(u8) -> u8 {my_const_fn}` declared as private