rustdoc supports const re-exports

This commit is contained in:
Mark Rousskov 2020-04-29 11:52:02 -04:00
parent e91aebc1a3
commit a1f81ff0ad
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
// aux-build:issue-27362.rs
// aux-build:issue-27362-aux.rs
// ignore-cross-compile
// ignore-test This test fails on beta/stable #32019
extern crate issue_27362;
pub use issue_27362 as quux;
extern crate issue_27362_aux;
// @matches issue_27362/quux/fn.foo.html '//pre' "pub const fn foo()"
// @matches issue_27362/quux/fn.bar.html '//pre' "pub const unsafe fn bar()"
// @matches issue_27362/quux/struct.Foo.html '//code' "const unsafe fn baz()"
pub use issue_27362_aux::*;
// @matches issue_27362/fn.foo.html '//pre' "pub const fn foo()"
// @matches issue_27362/fn.bar.html '//pre' "pub const unsafe fn bar()"
// @matches issue_27362/struct.Foo.html '//code' "const unsafe fn baz()"