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 b72fb8b commit 7ee841dCopy full SHA for 7ee841d
tests/ui/missing_const_for_fn/could_be_const.rs
@@ -25,8 +25,8 @@ fn two() -> i32 {
25
abc
26
}
27
28
-// TODO: Why can this be const? because it's a zero sized type?
29
-// There is the `const_string_new` feature, but it seems that this already works in const fns?
+// FIXME: This is a false positive in the `is_min_const_fn` function.
+// At least until the `const_string_new` feature is stabilzed.
30
fn string() -> String {
31
String::new()
32
0 commit comments