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 acbf2c4 commit 25c5e71Copy full SHA for 25c5e71
const.md
@@ -75,8 +75,8 @@ impl Drop for Foo {
75
}
76
77
78
-const FOO: Foo = Foo; // Ok
79
-static FOOO: Foo = Foo; // Ok
+const FOO: Foo = Foo; // Ok, drop is run at each use site in runtime code
+static FOOO: Foo = Foo; // Ok, drop is never run
80
81
// Not ok, cannot run `Foo::drop` because it's not a const fn
82
const BAR: i32 = (Foo, 42).1;
0 commit comments