Skip to content

Commit

Permalink
Update ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 25, 2023
1 parent 58c37eb commit c66b879
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions tests/ui/pin_project/visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
20 changes: 10 additions & 10 deletions tests/ui/pin_project/visibility.stderr
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit c66b879

Please sign in to comment.