Note def descr in NonConstFunctionCall

This commit is contained in:
Michael Goulet 2024-12-23 21:49:48 +00:00
parent addbd001ec
commit 92f93f6d11
84 changed files with 107 additions and 105 deletions

View file

@ -7,7 +7,7 @@ fn create_some() -> Option<u8> {
Some(1)
}
// error: cannot call non-const fn `create_some` in constants
// error: cannot call non-const function `create_some` in constants
const FOO: Option<u8> = create_some();
```