We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09cb840 commit 40adb9aCopy full SHA for 40adb9a
src/test/rustdoc-gui/lib.rs
@@ -27,6 +27,11 @@ pub fn foo() {}
27
/// Just a normal struct.
28
pub struct Foo;
29
30
+impl Foo {
31
+ #[must_use]
32
+ pub fn must_use(&self) -> bool { true }
33
+}
34
+
35
/// Just a normal enum.
36
pub enum WhoLetTheDogOut {
37
/// Woof!
src/test/rustdoc-gui/nojs-attr-pos.goml
@@ -0,0 +1,5 @@
1
+// Check that the attributes are well positioned when javascript is disabled (since
2
+// there is no toggle to display)
3
+javascript: false
4
+goto: file://|DOC_PATH|/struct.Foo.html
5
+assert: (".attributes", {"margin-left": "0px"})
0 commit comments