Skip to content

Commit 7ee841d

Browse files
committed
Change question to FIXME
1 parent b72fb8b commit 7ee841d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/missing_const_for_fn/could_be_const.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ fn two() -> i32 {
2525
abc
2626
}
2727

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?
28+
// FIXME: This is a false positive in the `is_min_const_fn` function.
29+
// At least until the `const_string_new` feature is stabilzed.
3030
fn string() -> String {
3131
String::new()
3232
}

0 commit comments

Comments
 (0)