From c66b87925d9faeda1df00df6c124ce24467b8b6e Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 25 Oct 2023 20:17:50 +0900 Subject: [PATCH] Update ui test --- tests/ui/pin_project/visibility.rs | 2 ++ tests/ui/pin_project/visibility.stderr | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/ui/pin_project/visibility.rs b/tests/ui/pin_project/visibility.rs index d8693d8d..8864f04f 100644 --- a/tests/ui/pin_project/visibility.rs +++ b/tests/ui/pin_project/visibility.rs @@ -3,6 +3,8 @@ // Only named projected types can be imported. // See import_unnamed.rs for unnamed projected types. +#![allow(unused_imports)] + mod pub_ { use pin_project::pin_project; diff --git a/tests/ui/pin_project/visibility.stderr b/tests/ui/pin_project/visibility.stderr index e4468a59..57ccdf01 100644 --- a/tests/ui/pin_project/visibility.stderr +++ b/tests/ui/pin_project/visibility.stderr @@ -1,39 +1,39 @@ error[E0365]: `DProj` is only public within the crate, and cannot be re-exported outside - --> tests/ui/pin_project/visibility.rs:17:13 + --> tests/ui/pin_project/visibility.rs:19:13 | -17 | pub use crate::pub_::DProj; //~ ERROR E0365 +19 | pub use crate::pub_::DProj; //~ ERROR E0365 | ^^^^^^^^^^^^^^^^^^ re-export of crate public `DProj` | = note: consider declaring type or module `DProj` with `pub` error[E0365]: `DProjRef` is only public within the crate, and cannot be re-exported outside - --> tests/ui/pin_project/visibility.rs:19:13 + --> tests/ui/pin_project/visibility.rs:21:13 | -19 | pub use crate::pub_::DProjRef; //~ ERROR E0365 +21 | pub use crate::pub_::DProjRef; //~ ERROR E0365 | ^^^^^^^^^^^^^^^^^^^^^ re-export of crate public `DProjRef` | = note: consider declaring type or module `DProjRef` with `pub` error[E0365]: `RProj` is only public within the crate, and cannot be re-exported outside - --> tests/ui/pin_project/visibility.rs:21:13 + --> tests/ui/pin_project/visibility.rs:23:13 | -21 | pub use crate::pub_::RProj; //~ ERROR E0365 +23 | pub use crate::pub_::RProj; //~ ERROR E0365 | ^^^^^^^^^^^^^^^^^^ re-export of crate public `RProj` | = note: consider declaring type or module `RProj` with `pub` error[E0365]: `RProjOwn` is only public within the crate, and cannot be re-exported outside - --> tests/ui/pin_project/visibility.rs:23:13 + --> tests/ui/pin_project/visibility.rs:25:13 | -23 | pub use crate::pub_::RProjOwn; //~ ERROR E0365 +25 | pub use crate::pub_::RProjOwn; //~ ERROR E0365 | ^^^^^^^^^^^^^^^^^^^^^ re-export of crate public `RProjOwn` | = note: consider declaring type or module `RProjOwn` with `pub` error[E0365]: `RProjRef` is only public within the crate, and cannot be re-exported outside - --> tests/ui/pin_project/visibility.rs:25:13 + --> tests/ui/pin_project/visibility.rs:27:13 | -25 | pub use crate::pub_::RProjRef; //~ ERROR E0365 +27 | pub use crate::pub_::RProjRef; //~ ERROR E0365 | ^^^^^^^^^^^^^^^^^^^^^ re-export of crate public `RProjRef` | = note: consider declaring type or module `RProjRef` with `pub`