We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb7384d commit 2a281e0Copy full SHA for 2a281e0
src/test/rustdoc/const-display.rs
@@ -32,3 +32,12 @@ pub const unsafe fn bar2_gated() -> u32 { 42 }
32
33
// @has 'foo/fn.bar_not_gated.html' '//pre' 'pub unsafe fn bar_not_gated() -> u32'
34
pub const unsafe fn bar_not_gated() -> u32 { 42 }
35
+
36
+pub struct Foo;
37
38
+impl Foo {
39
+ // @has 'foo/struct.Foo.html' '//h4[@id="method.gated"]/code' 'pub unsafe fn gated() -> u32'
40
+ #[stable(feature = "rust1", since = "1.0.0")]
41
+ #[rustc_const_unstable(feature="foo", issue = "none")]
42
+ pub const unsafe fn gated() -> u32 { 42 }
43
+}
0 commit comments